Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/flashctl Properly use format strings



details:   https://anonhg.NetBSD.org/src/rev/e836e7b0837d
branches:  trunk
changeset: 765340:e836e7b0837d
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue May 24 13:01:53 2011 +0000

description:
Properly use format strings

diffstat:

 usr.sbin/flashctl/flashctl.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 2b9da167e296 -r e836e7b0837d usr.sbin/flashctl/flashctl.c
--- a/usr.sbin/flashctl/flashctl.c      Tue May 24 12:49:11 2011 +0000
+++ b/usr.sbin/flashctl/flashctl.c      Tue May 24 13:01:53 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: flashctl.c,v 1.3 2011/04/04 18:30:07 ahoka Exp $       */
+/*     $NetBSD: flashctl.c,v 1.4 2011/05/24 13:01:53 joerg Exp $       */
 
 /*-
  * Copyright (c) 2010 Department of Software Engineering,
@@ -85,7 +85,7 @@
                if (argc == 2) {
                        error = to_intmax(&n, argv[0]);
                        if (error) {
-                               warnx(strerror(error));
+                               warnx("%s", strerror(error));
                                goto out;
                        }
                        ep.ep_addr = n;
@@ -95,7 +95,7 @@
                        } else {
                                error = to_intmax(&n, argv[1]);
                                if (error) {
-                                       warnx(strerror(error));
+                                       warnx("%s", strerror(error));
                                        goto out;
                                }
                                ep.ep_len = n;
@@ -198,7 +198,7 @@
                
                error = to_intmax(&n, argv[0]);
                if (error) {
-                       warnx(strerror(error));
+                       warnx("%s", strerror(error));
                        goto out;
                }
 



Home | Main Index | Thread Index | Old Index