- snprintf (c->name, sizeof c->name, "hd%d", chan_no);
+ snprintf (c->name, sizeof c->name, "hd%zd", chan_no);
/* Issue soft reset sequence, which selects device 0 as a side effect.
Also enable interrupts. */
outb (reg_ctl (c), 0);
/* Issue soft reset sequence, which selects device 0 as a side effect.
Also enable interrupts. */
outb (reg_ctl (c), 0);
dev |= DEV_DEV;
outb (reg_device (c), dev);
inb (reg_alt_status (c));
dev |= DEV_DEV;
outb (reg_device (c), dev);
inb (reg_alt_status (c));