cache_ide(DEV_DISK_DIR "/hdt", MAJOR_IDE10);
cache_ide(DEV_DISK_DIR "/hds", MAJOR_IDE10);
cache_ide(DEV_DISK_DIR "/hdr", MAJOR_IDE9);
cache_ide(DEV_DISK_DIR "/hdt", MAJOR_IDE10);
cache_ide(DEV_DISK_DIR "/hds", MAJOR_IDE10);
cache_ide(DEV_DISK_DIR "/hdr", MAJOR_IDE9);
cache_ide(DEV_DISK_DIR "/hdl", MAJOR_IDE6);
cache_ide(DEV_DISK_DIR "/hdk", MAJOR_IDE6);
cache_ide(DEV_DISK_DIR "/hdl", MAJOR_IDE6);
cache_ide(DEV_DISK_DIR "/hdk", MAJOR_IDE6);
cache_ide(DEV_DISK_DIR "/hdj", MAJOR_IDE5);
cache_ide(DEV_DISK_DIR "/hdi", MAJOR_IDE5);
cache_ide(DEV_DISK_DIR "/hdj", MAJOR_IDE5);
cache_ide(DEV_DISK_DIR "/hdi", MAJOR_IDE5);
for (i = MAX; i >= 0; i--) {
sprintf(tmp, is_devfs() ? DEV_DISK_DIR "/md/%d" : DEV_DISK_DIR "/md%d", i);
for (i = MAX; i >= 0; i--) {
sprintf(tmp, is_devfs() ? DEV_DISK_DIR "/md/%d" : DEV_DISK_DIR "/md%d", i);
cache_ide(DEV_DISK_DIR "/hdd", MAJOR_IDE2);
cache_ide(DEV_DISK_DIR "/hdc", MAJOR_IDE2);
cache_ide(DEV_DISK_DIR "/hdd", MAJOR_IDE2);
cache_ide(DEV_DISK_DIR "/hdc", MAJOR_IDE2);
- cache_ide(DEV_DISK_DIR "/hdb", MAJOR_HD);
- cache_ide(DEV_DISK_DIR "/hda", MAJOR_HD);
+ cache_ide(DEV_DISK_DIR "/hdb", MAJOR_IDE);
+ cache_ide(DEV_DISK_DIR "/hda", MAJOR_IDE);
struct stat st;
int duplicate = 0, invalid = 0, ret = 0, ntcaution = 0;
int raidcaution = 0;
struct stat st;
int duplicate = 0, invalid = 0, ret = 0, ntcaution = 0;
int raidcaution = 0;
- if (verbose >= 4) printf("Allocated DT entry for device %04X ptr=%08lx\n", vm[j].device, (long)walk);
+ if (verbose >= 4) printf("Allocated DT entry for device %04X ptr=%0*" PRIxPTR "\n", vm[j].device, , PTR_WIDTH, (intptr_t)walk);
- if (verbose >= 4) printf("Allocated DT entry for device %04X ptr=%08lx\n", vm[i].device, (long)walk);
+ if (verbose >= 4) printf("Allocated DT entry for device %04X ptr=%0*" PRIxPTR "\n", vm[i].device, PTR_WIDTH, (intptr_t)walk);