Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Also, don't hard-code the function name in the mess...



details:   https://anonhg.NetBSD.org/src/rev/793b8f6c5124
branches:  trunk
changeset: 816635:793b8f6c5124
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Fri Jul 15 01:17:47 2016 +0000

description:
Also, don't hard-code the function name in the message;  use __func__

diffstat:

 sys/kern/subr_autoconf.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r cf97f38f08ac -r 793b8f6c5124 sys/kern/subr_autoconf.c
--- a/sys/kern/subr_autoconf.c  Fri Jul 15 01:13:10 2016 +0000
+++ b/sys/kern/subr_autoconf.c  Fri Jul 15 01:17:47 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_autoconf.c,v 1.245 2016/07/15 01:13:10 pgoyette Exp $ */
+/* $NetBSD: subr_autoconf.c,v 1.246 2016/07/15 01:17:47 pgoyette Exp $ */
 
 /*
  * Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -77,7 +77,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.245 2016/07/15 01:13:10 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.246 2016/07/15 01:17:47 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -1372,7 +1372,7 @@
        /* get memory for all device vars */
        KASSERTMSG((ca->ca_flags & DVF_PRIV_ALLOC)
            || ca->ca_devsize >= sizeof(struct device),
-           "config_devalloc: %s (%zu < %zu)", cf->cf_atname, ca->ca_devsize,
+           "%s: %s (%zu < %zu)", __func__, cf->cf_atname, ca->ca_devsize,
            sizeof(struct device));
        if (ca->ca_devsize > 0) {
                dev_private = kmem_zalloc(ca->ca_devsize, KM_SLEEP);



Home | Main Index | Thread Index | Old Index