aboutsummaryrefslogtreecommitdiff
path: root/miscutils/hdparm.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/hdparm.c')
-rw-r--r--miscutils/hdparm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c
index 69726ae72..f0e9c9d75 100644
--- a/miscutils/hdparm.c
+++ b/miscutils/hdparm.c
@@ -465,14 +465,14 @@ static void on_off(int value)
465static void print_flag_on_off(int get_arg, const char *s, unsigned long arg) 465static void print_flag_on_off(int get_arg, const char *s, unsigned long arg)
466{ 466{
467 if (get_arg) { 467 if (get_arg) {
468 printf(" setting %s to %ld", s, arg); 468 printf(" setting %s to %lu", s, arg);
469 on_off(arg); 469 on_off(arg);
470 } 470 }
471} 471}
472 472
473static void print_value_on_off(const char *str, unsigned long argp) 473static void print_value_on_off(const char *str, unsigned long argp)
474{ 474{
475 printf(" %s\t= %2ld", str, argp); 475 printf(" %s\t= %2lu", str, argp);
476 on_off(argp != 0); 476 on_off(argp != 0);
477} 477}
478 478
@@ -1509,7 +1509,7 @@ static void bus_state_value(unsigned value)
1509 else if (value == BUSSTATE_TRISTATE) 1509 else if (value == BUSSTATE_TRISTATE)
1510 printf(" (tristate)\n"); 1510 printf(" (tristate)\n");
1511 else 1511 else
1512 printf(" (unknown: %d)\n", value); 1512 printf(" (unknown: %u)\n", value);
1513} 1513}
1514#endif 1514#endif
1515 1515
@@ -1589,7 +1589,7 @@ static void interpret_xfermode(unsigned xfermode)
1589static void print_flag(int flag, const char *s, unsigned long value) 1589static void print_flag(int flag, const char *s, unsigned long value)
1590{ 1590{
1591 if (flag) 1591 if (flag)
1592 printf(" setting %s to %ld\n", s, value); 1592 printf(" setting %s to %lu\n", s, value);
1593} 1593}
1594 1594
1595static void process_dev(char *devname) 1595static void process_dev(char *devname)