Use shorter fake device names in Windows

This commit is contained in:
Andrea Mazzoleni 2015-02-17 22:27:11 +01:00
parent d37e0703c3
commit fed3e8be1f
3 changed files with 32 additions and 12 deletions

View file

@ -973,7 +973,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->file, parent->device, parent->file, parent->name);
printf("%" PRIu64 "\t%s\t%" 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