diff options
Diffstat (limited to 'sys/kern/kern_fail.c')
-rw-r--r-- | sys/kern/kern_fail.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_fail.c b/sys/kern/kern_fail.c index 965219e..e0fb32b 100644 --- a/sys/kern/kern_fail.c +++ b/sys/kern/kern_fail.c @@ -177,6 +177,7 @@ fail_point_init(struct fail_point *fp, const char *fmt, ...) va_end(ap); } fp->fp_name = name; + fp->fp_location = ""; fp->fp_flags |= FAIL_POINT_DYNAMIC_NAME; fp->fp_sleep_fn = NULL; fp->fp_sleep_arg = NULL; @@ -372,10 +373,10 @@ fail_point_set(struct fail_point *fp, char *buf) end: #ifdef IWARNING if (error) - IWARNING("Failed to set %s (%s) to %s", + IWARNING("Failed to set %s %s to %s", fp->fp_name, fp->fp_location, buf); else - INOTICE("Set %s (%s) to %s", + INOTICE("Set %s %s to %s", fp->fp_name, fp->fp_location, buf); #endif /* IWARNING */ |