diff options
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/devices/storage.c | 16 | 
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;                      } | 
