Module Name: src
Committed By: darran
Date: Mon May 3 09:28:38 UTC 2010
Modified Files:
src/external/cddl/osnet/dev/fbt: fbt.c
Log Message:
DTrace: print a warning no CTF section is found when processing arguments.
This should help diagnose problems such as netbsd images without CTF
sections and old boot loaders.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/cddl/osnet/dev/fbt/fbt.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/cddl/osnet/dev/fbt/fbt.c
diff -u src/external/cddl/osnet/dev/fbt/fbt.c:1.5 src/external/cddl/osnet/dev/fbt/fbt.c:1.6
--- src/external/cddl/osnet/dev/fbt/fbt.c:1.5 Sat Mar 13 22:31:15 2010
+++ src/external/cddl/osnet/dev/fbt/fbt.c Mon May 3 09:28:38 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: fbt.c,v 1.5 2010/03/13 22:31:15 christos Exp $ */
+/* $NetBSD: fbt.c,v 1.6 2010/05/03 09:28:38 darran Exp $ */
/*
* CDDL HEADER START
@@ -1399,6 +1399,12 @@
/* Get a pointer to the CTF data and it's length. */
if (mod_ctf_get(ctl, &mc) != 0) {
+ static int report=0;
+ if (report < 1) {
+ report++;
+ printf("FBT: Error no CTF section found in module \"%s\"\n",
+ ctl->mod_info->mi_name);
+ }
/* No CTF data? Something wrong? *shrug* */
return;
}