In "devices" command format the disk serial as 8 hex digits in Windows

This commit is contained in:
Andrea Mazzoleni 2015-04-14 20:49:03 +02:00
parent f935c8f828
commit 6c91927803

View file

@ -995,7 +995,7 @@ void state_device(struct snapraid_state* state, int operation)
devinfo_t* devinfo = i->data;
devinfo_t* parent = devinfo->parent;
#ifdef _WIN32
printf("%" PRIu64 "\t%s\t%" PRIx64 "\t%s\t%s\n", devinfo->device, devinfo->wfile, parent->device, parent->wfile, parent->name);
printf("%" PRIu64 "\t%s\t%08" PRIx64 "\t%s\t%s\n", devinfo->device, devinfo->wfile, parent->device, parent->wfile, parent->name);
#else
printf("%u:%u\t%s\t%u:%u\t%s\t%s\n", major(devinfo->device), minor(devinfo->device), devinfo->file, major(parent->device), minor(parent->device), parent->file, parent->name);
#endif