diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2011-09-19 21:23:43 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2011-09-19 21:23:43 +0000 |
commit | 2561a1cebf7b9f0fd158caf2b4c26fd662adc3b1 (patch) | |
tree | d7578b6ee66090785191d2da7706ef8eeafd7aed /sys/arch | |
parent | f0dbe9059436449f28dbe5c472c80dd84195c9e4 (diff) |
Print 64 bit values with %ll to get a meaningful message at attach time.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/vax/vsa/hdc9224.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/vax/vsa/hdc9224.c b/sys/arch/vax/vsa/hdc9224.c index 6f8921f4666..bf5703cf883 100644 --- a/sys/arch/vax/vsa/hdc9224.c +++ b/sys/arch/vax/vsa/hdc9224.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hdc9224.c,v 1.37 2011/07/06 04:49:36 matthew Exp $ */ +/* $OpenBSD: hdc9224.c,v 1.38 2011/09/19 21:23:42 miod Exp $ */ /* $NetBSD: hdc9224.c,v 1.16 2001/07/26 15:05:09 wiz Exp $ */ /* * Copyright (c) 1996 Ludd, University of Lule}, Sweden. @@ -372,7 +372,7 @@ hdattach(struct device *parent, struct device *self, void *aux) dl = hd->sc_disk.dk_label; error = hdgetdisklabel(MAKEDISKDEV(HDMAJOR, hd->sc_dev.dv_unit, RAW_PART), hd, dl, 0); - printf("%s: %luMB, %lu sectors\n", + printf("%s: %lluMB, %llu sectors\n", hd->sc_dev.dv_xname, DL_GETDSIZE(dl) / (1048576 / DEV_BSIZE), DL_GETDSIZE(dl)); #ifdef HDDEBUG |