Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/zaurus/stand/zboot Use format string.



details:   https://anonhg.NetBSD.org/src/rev/29616e4c9666
branches:  trunk
changeset: 325038:29616e4c9666
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun Dec 01 02:54:53 2013 +0000

description:
Use format string.

diffstat:

 sys/arch/zaurus/stand/zboot/unixcons.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r ce9644a3ff60 -r 29616e4c9666 sys/arch/zaurus/stand/zboot/unixcons.c
--- a/sys/arch/zaurus/stand/zboot/unixcons.c    Sun Dec 01 02:54:33 2013 +0000
+++ b/sys/arch/zaurus/stand/zboot/unixcons.c    Sun Dec 01 02:54:53 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: unixcons.c,v 1.1 2009/03/02 09:33:02 nonaka Exp $      */
+/*     $NetBSD: unixcons.c,v 1.2 2013/12/01 02:54:53 joerg Exp $       */
 
 /*
  * Copyright (c) 2009 NONAKA Kimihiro <nonaka%netbsd.org@localhost>
@@ -175,7 +175,7 @@
                        for (j = 0; j < len; j++)
                                numbuf[len + j] = '\b';
                        numbuf[len + j] = '\0';
-                       printf(numbuf);
+                       printf("%s", numbuf);
                }
                c = common_getc(infd, 1);
                if (c == 0)



Home | Main Index | Thread Index | Old Index