Source-Changes-HG archive

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

[src/trunk]: src/external/cddl/osnet/dev/fbt print the function name that was...



details:   https://anonhg.NetBSD.org/src/rev/26a44b252420
branches:  trunk
changeset: 785208:26a44b252420
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Mar 03 18:18:13 2013 +0000

description:
print the function name that was not found.

diffstat:

 external/cddl/osnet/dev/fbt/fbt.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 7b647592077e -r 26a44b252420 external/cddl/osnet/dev/fbt/fbt.c
--- a/external/cddl/osnet/dev/fbt/fbt.c Sun Mar 03 18:16:35 2013 +0000
+++ b/external/cddl/osnet/dev/fbt/fbt.c Sun Mar 03 18:18:13 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fbt.c,v 1.11 2012/06/16 17:31:47 chs Exp $     */
+/*     $NetBSD: fbt.c,v 1.12 2013/03/03 18:18:13 christos Exp $        */
 
 /*
  * CDDL HEADER START
@@ -1463,12 +1463,14 @@
        n = CTF_INFO_VLEN(info);
 
        if (kind == CTF_K_UNKNOWN && n == 0) {
-               printf("%s(%d): Unknown function!\n",__func__,__LINE__);
+               printf("%s(%d): Unknown function %s!\n",__func__,__LINE__,
+                   fbt->fbtp_name);
                return;
        }
 
        if (kind != CTF_K_FUNCTION) {
-               printf("%s(%d): Expected a function!\n",__func__,__LINE__);
+               printf("%s(%d): Expected a function %s!\n",__func__,__LINE__,
+                   fbt->fbtp_name);
                return;
        }
 



Home | Main Index | Thread Index | Old Index