mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
Remove the 0x usage in log files
This commit is contained in:
parent
4af4504515
commit
827eb2117e
3 changed files with 6 additions and 6 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue