Source-Changes-HG archive

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

[src/trunk]: src/sys/dev Don't use string literal as format string.



details:   https://anonhg.NetBSD.org/src/rev/adf2730f890d
branches:  trunk
changeset: 765266:adf2730f890d
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon May 23 21:18:55 2011 +0000

description:
Don't use string literal as format string.

diffstat:

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

diffs (27 lines):

diff -r 5385ea730b8f -r adf2730f890d sys/dev/fss.c
--- a/sys/dev/fss.c     Mon May 23 20:49:35 2011 +0000
+++ b/sys/dev/fss.c     Mon May 23 21:18:55 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fss.c,v 1.73 2011/02/24 09:38:57 hannken Exp $ */
+/*     $NetBSD: fss.c,v 1.74 2011/05/23 21:18:55 joerg Exp $   */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fss.c,v 1.73 2011/02/24 09:38:57 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fss.c,v 1.74 2011/05/23 21:18:55 joerg Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -456,7 +456,7 @@
 
        sc->sc_flags |= FSS_BS_THREAD;
        if ((error = kthread_create(PRI_BIO, 0, NULL, fss_bs_thread, sc,
-           &sc->sc_bs_lwp, device_xname(sc->sc_dev))) != 0) {
+           &sc->sc_bs_lwp, "%s", device_xname(sc->sc_dev))) != 0) {
                sc->sc_flags &= ~FSS_BS_THREAD;
                return error;
        }



Home | Main Index | Thread Index | Old Index