diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-04-18 20:27:16 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-04-18 20:27:16 +0000 |
| commit | 008f0e2abb3a62eb4b862129c5f0e6baac3b9420 (patch) | |
| tree | 140750c2495829f9195b923751c8bad8a2e2ff49 /sbin/sunlabel/sunlabel.c | |
| parent | 535cf73341146fc4ab034ac752af512ecee5a7bc (diff) | |
Notes
Diffstat (limited to 'sbin/sunlabel/sunlabel.c')
| -rw-r--r-- | sbin/sunlabel/sunlabel.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/sunlabel/sunlabel.c b/sbin/sunlabel/sunlabel.c index 99a26204187f8..1bd2fa7626879 100644 --- a/sbin/sunlabel/sunlabel.c +++ b/sbin/sunlabel/sunlabel.c @@ -296,17 +296,17 @@ read_label(struct sun_disklabel *sl, const char *disk) sl->sl_part[2].sdkp_cyloffset = 0; sl->sl_part[2].sdkp_nsectors = sl->sl_ncylinders * sl->sl_ntracks * sl->sl_nsectors; - if (mediasize > 4999L * 1024L * 1024L) { + if (mediasize > (off_t)4999L * 1024L * 1024L) { sprintf(sl->sl_text, - "FreeBSD%luG cyl %u alt %u hd %u sec %u", - (mediasize + 512 * 1024 * 1024) / + "FreeBSD%jdG cyl %u alt %u hd %u sec %u", + (intmax_t)(mediasize + 512 * 1024 * 1024) / (1024 * 1024 * 1024), sl->sl_ncylinders, sl->sl_acylinders, sl->sl_ntracks, sl->sl_nsectors); } else { sprintf(sl->sl_text, - "FreeBSD%luM cyl %u alt %u hd %u sec %u", - (mediasize + 512 * 1024) / (1024 * 1024), + "FreeBSD%jdM cyl %u alt %u hd %u sec %u", + (intmax_t)(mediasize + 512 * 1024) / (1024 * 1024), sl->sl_ncylinders, sl->sl_acylinders, sl->sl_ntracks, sl->sl_nsectors); } |
