aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorOndrej Čerman <ondrej.cerman@gmail.com>2021-09-11 22:17:26 +0200
committerLeandro A. F. Pereira <leandro@hardinfo.org>2021-09-15 10:06:56 -0700
commit84a3445010d908a0d0a0195496dedbc6eb3aa9d4 (patch)
treeccf517c59addf080fcbe6e1a98d9b7d74a78ca25 /modules
parent423cb3e9a8f8c2fd6abb41f202bfef385964b25f (diff)
ppc64 - fixed smart info and resolved compilation warnings
Diffstat (limited to 'modules')
-rw-r--r--modules/devices/storage.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/modules/devices/storage.c b/modules/devices/storage.c
index 07406226..4475e868 100644
--- a/modules/devices/storage.c
+++ b/modules/devices/storage.c
@@ -310,8 +310,8 @@ gboolean __scan_udisks2_devices(void) {
if (disk->smart_enabled) {
moreinfo = h_strdup_cprintf(_("[Self-monitoring (S.M.A.R.T.)]\n"
"Status=%s\n"
- "Bad Sectors=%ld\n"
- "Power on time=%lu days %lu hours\n"
+ "Bad Sectors=%" G_GINT64_FORMAT "\n"
+ "Power on time=%" G_GUINT64_FORMAT " days %" G_GUINT64_FORMAT " hours\n"
"Temperature=%d°C\n"),
moreinfo,
disk->smart_failing ? _("Failing"): _("OK"),
@@ -334,20 +334,22 @@ gboolean __scan_udisks2_devices(void) {
tmp = h_strdup_cprintf("-", tmp);
break;
case UDSK_INTPVAL_MILISECONDS:
- tmp = h_strdup_cprintf("%ld ms", tmp, attrib->interpreted);
+ tmp = h_strdup_cprintf("%" G_GINT64_FORMAT " ms", tmp, attrib->interpreted);
break;
case UDSK_INTPVAL_HOURS:
- tmp = h_strdup_cprintf("%ld h", tmp, attrib->interpreted);
+ tmp = h_strdup_cprintf("%" G_GINT64_FORMAT " h", tmp, attrib->interpreted);
break;
case UDSK_INTPVAL_CELSIUS:
- tmp = h_strdup_cprintf("%ld°C", tmp, attrib->interpreted);
+ tmp = h_strdup_cprintf("%" G_GINT64_FORMAT "°C", tmp, attrib->interpreted);
break;
case UDSK_INTPVAL_SECTORS:
- tmp = h_strdup_cprintf(ngettext("%ld sector", "%ld sectors", attrib->interpreted), tmp, attrib->interpreted);
+ tmp = h_strdup_cprintf(ngettext("%" G_GINT64_FORMAT " sector",
+ "%" G_GINT64_FORMAT " sectors", attrib->interpreted),
+ tmp, attrib->interpreted);
break;
case UDSK_INTPVAL_DIMENSIONLESS:
default:
- tmp = h_strdup_cprintf("%ld", tmp, attrib->interpreted);
+ tmp = h_strdup_cprintf("%" G_GINT64_FORMAT, tmp, attrib->interpreted);
break;
}