Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/radioctl Properly use format strings.



details:   https://anonhg.NetBSD.org/src/rev/f961462c50c6
branches:  trunk
changeset: 765335:f961462c50c6
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue May 24 12:40:11 2011 +0000

description:
Properly use format strings.

diffstat:

 usr.bin/radioctl/radioctl.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r 7b0537e61451 -r f961462c50c6 usr.bin/radioctl/radioctl.c
--- a/usr.bin/radioctl/radioctl.c       Tue May 24 12:35:36 2011 +0000
+++ b/usr.bin/radioctl/radioctl.c       Tue May 24 12:40:11 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: radioctl.c,v 1.8 2009/04/13 04:24:29 lukem Exp $ */
+/* $NetBSD: radioctl.c,v 1.9 2011/05/24 12:40:11 joerg Exp $ */
 /* $OpenBSD: radioctl.c,v 1.5 2001/12/18 18:42:19 mickey Exp $ */
 /* $RuOBSD: radioctl.c,v 1.4 2001/10/20 18:09:10 pva Exp $ */
 
@@ -29,7 +29,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: radioctl.c,v 1.8 2009/04/13 04:24:29 lukem Exp $");
+__RCSID("$NetBSD: radioctl.c,v 1.9 2011/05/24 12:40:11 joerg Exp $");
 #endif
 
 #include <sys/ioctl.h>
@@ -459,13 +459,13 @@
                printf("%umkV", ri.lock);
                break;
        case OPTION_MUTE:
-               printf(ri.mute ? onchar : offchar);
+               printf("%s", ri.mute ? onchar : offchar);
                break;
        case OPTION_MONO:
-               printf(ri.stereo ? offchar : onchar);
+               printf("%s", ri.stereo ? offchar : onchar);
                break;
        case OPTION_STEREO:
-               printf(ri.stereo ? onchar : offchar);
+               printf("%s", ri.stereo ? onchar : offchar);
                break;
        case OPTION_VOLUME:
        default:



Home | Main Index | Thread Index | Old Index