Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/stand/standtest PR/50530: David Binderman: Ad...



details:   https://anonhg.NetBSD.org/src/rev/5ecc62c943ab
branches:  trunk
changeset: 812390:5ecc62c943ab
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Dec 13 18:51:14 2015 +0000

description:
PR/50530: David Binderman: Add missing printf args

diffstat:

 sys/arch/alpha/stand/standtest/test.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d389e0211ece -r 5ecc62c943ab sys/arch/alpha/stand/standtest/test.c
--- a/sys/arch/alpha/stand/standtest/test.c     Sun Dec 13 18:41:09 2015 +0000
+++ b/sys/arch/alpha/stand/standtest/test.c     Sun Dec 13 18:51:14 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: test.c,v 1.5 2011/01/22 19:19:15 joerg Exp $ */
+/* $NetBSD: test.c,v 1.6 2015/12/13 18:51:14 christos Exp $ */
 
 /*
  * Copyright (c) 1999 Christopher G. Demetriou.  All rights reserved.
@@ -275,7 +275,7 @@
        }
        buf = cvt_number(buf, &startaddr);
        if (*buf != '\0' && !isspace(*buf)) {
-               printf("bad character '%c' in starting address\n");
+               printf("bad character '%c' in starting address\n", *buf);
                return;
        }
 
@@ -283,7 +283,7 @@
        if (buf != NULL) {
                buf = cvt_number(buf, &count);
                if (*buf != '\0' && !isspace(*buf)) {
-                       printf("bad character '%c' in count\n");
+                       printf("bad character '%c' in count\n", *buf);
                        return;
                }
                buf = advance_past_space(buf);



Home | Main Index | Thread Index | Old Index