Skip to content

Commit 756cc27

Browse files
committed
Use printf instead of fwrite.
1 parent 974e66c commit 756cc27

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

biosdecode.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,8 @@ static int acpi_decode(const u8 *p, size_t len)
244244

245245
printf("ACPI%s present.\n",
246246
acpi_revision(p[15]));
247-
printf("\tOEM Identifier: ");
248-
fwrite(p+9, 6, 1, stdout);
249-
printf("\n");
247+
printf("\tOEM Identifier: %c%c%c%c%c%c\n",
248+
p[9], p[10], p[11], p[12], p[13], p[14]);
250249
printf("\tRSD Table 32-bit Address: 0x%08X\n",
251250
DWORD(p+16));
252251

0 commit comments

Comments
 (0)