summaryrefslogtreecommitdiffstats
path: root/fdisk/fdisksgilabel.c
diff options
context:
space:
mode:
authorKarel Zak2007-05-30 17:10:43 +0200
committerKarel Zak2007-05-31 15:00:50 +0200
commitbe97c5f361eafdcbfe844b0d9ebb93ad893be1e3 (patch)
tree726f8cfc7387b9e921e7de6528483b5fea2e893f /fdisk/fdisksgilabel.c
parentmount: clean up info about NFS in mount.8 (diff)
downloadkernel-qcow2-util-linux-be97c5f361eafdcbfe844b0d9ebb93ad893be1e3.tar.gz
kernel-qcow2-util-linux-be97c5f361eafdcbfe844b0d9ebb93ad893be1e3.tar.xz
kernel-qcow2-util-linux-be97c5f361eafdcbfe844b0d9ebb93ad893be1e3.zip
fdisk: use unsigned long long instead int for sectors
The patch is originally based on an old Suse patch. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisk/fdisksgilabel.c')
-rw-r--r--fdisk/fdisksgilabel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fdisk/fdisksgilabel.c b/fdisk/fdisksgilabel.c
index 487a92f92..041de784b 100644
--- a/fdisk/fdisksgilabel.c
+++ b/fdisk/fdisksgilabel.c
@@ -197,7 +197,7 @@ sgi_list_table(int xtra) {
w = strlen(disk_device);
if (xtra) {
- printf(_("\nDisk %s (SGI disk label): %d heads, %d sectors\n"
+ printf(_("\nDisk %s (SGI disk label): %d heads, %llu sectors\n"
"%d cylinders, %d physical cylinders\n"
"%d extra sects/cyl, interleave %d:1\n"
"%s\n"
@@ -211,7 +211,7 @@ sgi_list_table(int xtra) {
sector_size);
} else {
printf(_("\nDisk %s (SGI disk label): "
- "%d heads, %d sectors, %d cylinders\n"
+ "%d heads, %llu sectors, %d cylinders\n"
"Units = %s of %d * %d bytes\n\n"),
disk_device, heads, sectors, cylinders,
str_units(PLURAL), units_per_sector,