Commit 306ad72c authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Use decimal instead of hex for EDD values

From: "Patrick J. LoPresti" <patl@users.sourceforge.net>

This patch changes default_cylinders, default_heads,
default_sectors_per_track, legacy_max_cylinder, legacy_max_head,
legacy_sectors_per_track, and sectors to decimal.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 6cdb275a
...@@ -330,7 +330,7 @@ edd_show_legacy_max_cylinder(struct edd_device *edev, char *buf) ...@@ -330,7 +330,7 @@ edd_show_legacy_max_cylinder(struct edd_device *edev, char *buf)
if (!info || !buf) if (!info || !buf)
return -EINVAL; return -EINVAL;
p += snprintf(p, left, "0x%x\n", info->legacy_max_cylinder); p += snprintf(p, left, "%u\n", info->legacy_max_cylinder);
return (p - buf); return (p - buf);
} }
...@@ -345,7 +345,7 @@ edd_show_legacy_max_head(struct edd_device *edev, char *buf) ...@@ -345,7 +345,7 @@ edd_show_legacy_max_head(struct edd_device *edev, char *buf)
if (!info || !buf) if (!info || !buf)
return -EINVAL; return -EINVAL;
p += snprintf(p, left, "0x%x\n", info->legacy_max_head); p += snprintf(p, left, "%u\n", info->legacy_max_head);
return (p - buf); return (p - buf);
} }
...@@ -360,7 +360,7 @@ edd_show_legacy_sectors_per_track(struct edd_device *edev, char *buf) ...@@ -360,7 +360,7 @@ edd_show_legacy_sectors_per_track(struct edd_device *edev, char *buf)
if (!info || !buf) if (!info || !buf)
return -EINVAL; return -EINVAL;
p += snprintf(p, left, "0x%x\n", info->legacy_sectors_per_track); p += snprintf(p, left, "%u\n", info->legacy_sectors_per_track);
return (p - buf); return (p - buf);
} }
...@@ -375,7 +375,7 @@ edd_show_default_cylinders(struct edd_device *edev, char *buf) ...@@ -375,7 +375,7 @@ edd_show_default_cylinders(struct edd_device *edev, char *buf)
if (!info || !buf) if (!info || !buf)
return -EINVAL; return -EINVAL;
p += scnprintf(p, left, "0x%x\n", info->params.num_default_cylinders); p += scnprintf(p, left, "%u\n", info->params.num_default_cylinders);
return (p - buf); return (p - buf);
} }
...@@ -390,7 +390,7 @@ edd_show_default_heads(struct edd_device *edev, char *buf) ...@@ -390,7 +390,7 @@ edd_show_default_heads(struct edd_device *edev, char *buf)
if (!info || !buf) if (!info || !buf)
return -EINVAL; return -EINVAL;
p += scnprintf(p, left, "0x%x\n", info->params.num_default_heads); p += scnprintf(p, left, "%u\n", info->params.num_default_heads);
return (p - buf); return (p - buf);
} }
...@@ -405,7 +405,7 @@ edd_show_default_sectors_per_track(struct edd_device *edev, char *buf) ...@@ -405,7 +405,7 @@ edd_show_default_sectors_per_track(struct edd_device *edev, char *buf)
if (!info || !buf) if (!info || !buf)
return -EINVAL; return -EINVAL;
p += scnprintf(p, left, "0x%x\n", info->params.sectors_per_track); p += scnprintf(p, left, "%u\n", info->params.sectors_per_track);
return (p - buf); return (p - buf);
} }
...@@ -420,7 +420,7 @@ edd_show_sectors(struct edd_device *edev, char *buf) ...@@ -420,7 +420,7 @@ edd_show_sectors(struct edd_device *edev, char *buf)
if (!info || !buf) if (!info || !buf)
return -EINVAL; return -EINVAL;
p += scnprintf(p, left, "0x%llx\n", info->params.number_of_sectors); p += scnprintf(p, left, "%llu\n", info->params.number_of_sectors);
return (p - buf); return (p - buf);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment