kdump(1): Fix amd64 warning.
authorSascha Wildner <saw@online.de>
Tue, 28 Jul 2009 16:00:40 +0000 (18:00 +0200)
committerSascha Wildner <saw@online.de>
Tue, 28 Jul 2009 16:00:40 +0000 (18:00 +0200)
usr.bin/kdump/kdump.c

index 034870d..9ff65dc 100644 (file)
@@ -691,7 +691,7 @@ ktrsysret(struct ktr_sysret *ktr)
 
        if (error == 0) {
                if (fancy) {
-                       (void)printf("%d", ret);
+                       (void)printf("%ld", (long)ret);
                        if (ret < 0 || ret > 9)
                                (void)printf("/%#lx", (long)ret);
                } else {