Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/spi m25p: print vendor & device id before bailing ou...



details:   https://anonhg.NetBSD.org/src/rev/0b8ac9b2434d
branches:  trunk
changeset: 964469:0b8ac9b2434d
user:      tnn <tnn%NetBSD.org@localhost>
date:      Sat Aug 03 00:46:02 2019 +0000

description:
m25p: print vendor & device id before bailing out on unknown devices

diffstat:

 sys/dev/spi/m25p.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r cb679cc564c7 -r 0b8ac9b2434d sys/dev/spi/m25p.c
--- a/sys/dev/spi/m25p.c        Fri Aug 02 23:24:37 2019 +0000
+++ b/sys/dev/spi/m25p.c        Sat Aug 03 00:46:02 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: m25p.c,v 1.6 2018/01/31 16:00:03 jakllsch Exp $ */
+/* $NetBSD: m25p.c,v 1.7 2019/08/03 00:46:02 tnn Exp $ */
 
 /*-
  * Copyright (c) 2006 Urbana-Champaign Independent Media Center.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: m25p.c,v 1.6 2018/01/31 16:00:03 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: m25p.c,v 1.7 2019/08/03 00:46:02 tnn Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -168,7 +168,8 @@
        }
 
        if (info->name == NULL) {
-               aprint_error(": unknown or unsupported device\n");
+               aprint_error(": vendor 0x%02X dev 0x%04X sig 0x%02X not supported\n",
+                            mfgid, devid, sig);
                return;
        }
 



Home | Main Index | Thread Index | Old Index