Re: Question about /proc/ide
Wakko Warner (wakko@animx.eu.org)
Thu, 14 Oct 1999 12:47:15 -0400
> No.
> The patch below will make them positive again, I suppose.
> (this is on /usr/src/linux/drivers/block/ide-proc.c or so)
>
>
> --- ide-proc.c~ Wed May 6 23:42:53 1998
> +++ ide-proc.c Thu Oct 14 18:18:31 1999
> @@ -516,8 +516,10 @@
> char *out = page;
> int len;
>
> - out += sprintf(out,"physical %hi/%hi/%hi\n", drive->cyl, drive->head, drive->sect);
> - out += sprintf(out,"logical %hi/%hi/%hi\n", drive->bios_cyl, drive->bios_head, drive->bios_sect);
> + out += sprintf(out,"physical %d/%d/%d\n",
> + drive->cyl, drive->head, drive->sect);
> + out += sprintf(out,"logical %d/%d/%d\n",
> + drive->bios_cyl, drive->bios_head, drive->bios_sect);
shouldn't that be %u instead of %d?
--
Lab tests show that use of micro$oft causes cancer in lab animals
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/