From 827eb2117e931239d47891bc0140e9bae658ce12 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Fri, 10 Apr 2015 18:30:06 +0200 Subject: [PATCH] Remove the 0x usage in log files --- cmdline/device.c | 2 +- cmdline/mingw.c | 6 +++--- cmdline/unix.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmdline/device.c b/cmdline/device.c index e37ed842..bfdc58c6 100644 --- a/cmdline/device.c +++ b/cmdline/device.c @@ -793,7 +793,7 @@ static void state_smart(unsigned n, tommy_list* low) msg_tag("smart:%s:%s:%s:%g\n", devinfo->file, devinfo->name, esc(devinfo->smart_serial), afr); for (j = 0; j < 256; ++j) { if (devinfo->smart[j] != SMART_UNASSIGNED) - msg_tag("attr:%s:%u:%" PRIu64 ":0x%" PRIx64 "\n", devinfo->file, j, devinfo->smart[j], devinfo->smart[j]); + msg_tag("attr:%s:%u:%" PRIu64 ":%" PRIx64 "\n", devinfo->file, j, devinfo->smart[j], devinfo->smart[j]); } if (devinfo->smart[SMART_SIZE] != SMART_UNASSIGNED) msg_tag("attr:%s:size:%" PRIu64 "\n", devinfo->file, devinfo->smart[SMART_SIZE]); diff --git a/cmdline/mingw.c b/cmdline/mingw.c index 07c617c1..65576c90 100644 --- a/cmdline/mingw.c +++ b/cmdline/mingw.c @@ -2055,7 +2055,7 @@ static int devscan(tommy_list* list) /* LCOV_EXCL_STOP */ } - msg_tag("smartctl:ret:scan: 0x%x\n", ret); + msg_tag("smartctl:ret:scan: %x\n", ret); return 0; } @@ -2104,7 +2104,7 @@ retry: ret = pclose(f); - msg_tag("smartctl:ret:%s: 0x%x\n", name, ret); + msg_tag("smartctl:ret:%s: %x\n", name, ret); if (ret == -1) { /* LCOV_EXCL_START */ @@ -2173,7 +2173,7 @@ retry: ret = _wsystem(cmd); - msg_tag("smartctl:ret:%s: 0x%x\n", name, ret); + msg_tag("smartctl:ret:%s: %x\n", name, ret); if (ret == -1) { /* LCOV_EXCL_START */ diff --git a/cmdline/unix.c b/cmdline/unix.c index 586830d2..4d8a1419 100644 --- a/cmdline/unix.c +++ b/cmdline/unix.c @@ -658,7 +658,7 @@ static int devsmart(dev_t device, const char* name, const char* custom, uint64_t ret = pclose(f); - msg_tag("smartctl:ret:%s 0x%x\n", name, ret); + msg_tag("smartctl:ret:%s %x\n", name, ret); if (!WIFEXITED(ret)) { /* LCOV_EXCL_START */ @@ -704,7 +704,7 @@ static int devdown(dev_t device, const char* name, const char* custom) ret = system(cmd); - msg_tag("smartctl:ret:%s: 0x%x\n", name, ret); + msg_tag("smartctl:ret:%s: %x\n", name, ret); if (ret == -1) { /* LCOV_EXCL_START */