lkml.org 
[lkml]   [1999]   [Oct]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Question about /proc/ide
> 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/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.098 / U:0.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site