X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/99627752964e77e1e0365cc7395bf9803a7fb93f..17da2e2a21bb3eb37bfc2a3b0dbba12fdcd04a1d:/VtoyTool/vtoydm.c diff --git a/VtoyTool/vtoydm.c b/VtoyTool/vtoydm.c index 8e748c2..ec0cb95 100644 --- a/VtoyTool/vtoydm.c +++ b/VtoyTool/vtoydm.c @@ -507,9 +507,18 @@ static int vtoydm_print_linear_table(const char *img_map_file, const char *diskn (sector_start << 2), disk_sector_num, diskname, (unsigned long long)chunk[i].disk_start_sector); #else - printf("%u %u linear %s1 %llu\n", + if (strstr(diskname, "nvme") || strstr(diskname, "mmc")) + { + printf("%u %u linear %sp1 %llu\n", (sector_start << 2), disk_sector_num, diskname, (unsigned long long)chunk[i].disk_start_sector - 2048); + } + else + { + printf("%u %u linear %s1 %llu\n", + (sector_start << 2), disk_sector_num, + diskname, (unsigned long long)chunk[i].disk_start_sector - 2048); + } #endif }