Source-Changes-HG archive

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

[src/netbsd-1-4]: src/usr.bin/kdump Apply patch (requested by he):



details:   https://anonhg.NetBSD.org/src/rev/9d45ba484bab
branches:  netbsd-1-4
changeset: 471157:9d45ba484bab
user:      he <he%NetBSD.org@localhost>
date:      Thu Oct 19 20:35:38 2000 +0000

description:
Apply patch (requested by he):
  Fix format / arg mismatch.

diffstat:

 usr.bin/kdump/kdump.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7c74d8954f50 -r 9d45ba484bab usr.bin/kdump/kdump.c
--- a/usr.bin/kdump/kdump.c     Thu Oct 19 19:23:41 2000 +0000
+++ b/usr.bin/kdump/kdump.c     Thu Oct 19 20:35:38 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kdump.c,v 1.23 1998/10/24 19:04:51 christos Exp $      */
+/*     $NetBSD: kdump.c,v 1.23.2.1 2000/10/19 20:35:38 he Exp $        */
 
 /*-
  * Copyright (c) 1988, 1993
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)kdump.c    8.4 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: kdump.c,v 1.23 1998/10/24 19:04:51 christos Exp $");
+__RCSID("$NetBSD: kdump.c,v 1.23.2.1 2000/10/19 20:35:38 he Exp $");
 #endif
 #endif /* not lint */
 
@@ -333,7 +333,7 @@
        *dir = '\0';
 
        printf(decimal ? ",_IO%s('%c',%ld" : ",_IO%s('%c',%#lx",
-           dirbuf, (cmd >> 8) & 0xff, cmd & 0xff);
+           dirbuf, (char)((cmd >> 8) & 0xff), cmd & 0xff);
        if ((cmd & IOC_VOID) == 0)
                printf(decimal ? ",%ld)" : ",%#lx)", (cmd >> 16) & 0xff);
        else



Home | Main Index | Thread Index | Old Index