diff options
author | uwe <uwe@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2007-10-17 23:55:15 +0000 |
---|---|---|
committer | uwe <uwe@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2007-10-17 23:55:15 +0000 |
commit | 1668a8962e9a11581b5d4e8983e2675af849530a (patch) | |
tree | 9746755cc3c75130ac3a05755ebbbcaff8fd81f3 /layout.c | |
parent | 6b30287fed5f84e78f3f29bbd70339ebc1608579 (diff) | |
download | flashrom-1668a8962e9a11581b5d4e8983e2675af849530a.tar.gz |
Original v2 revision: 2873
Some cosmetic cleanups in the flashrom code and output.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@151 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'layout.c')
-rw-r--r-- | layout.c | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -47,14 +47,14 @@ int show_id(uint8_t *bios, int size) } printf_debug("LinuxBIOS last image size " - "(not rom size) is %d bytes.\n", *walk); + "(not ROM size) is %d bytes.\n", *walk); walk--; mainboard_part = strdup((const char *)(bios + size - *walk)); walk--; mainboard_vendor = strdup((const char *)(bios + size - *walk)); - printf_debug("MANUFACTURER: %s\n", mainboard_vendor); - printf_debug("MAINBOARD ID: %s\n", mainboard_part); + printf_debug("Manufacturer: %s\n", mainboard_vendor); + printf_debug("Mainboard ID: %s\n", mainboard_part); /* * If lb_vendor is not set, the linuxbios table was @@ -63,7 +63,7 @@ int show_id(uint8_t *bios, int size) if (!lb_vendor || !lb_part) { printf("Note: If the following flash access fails, " - "you might need to specify -m <vendor>:<mainboard>\n"); + "you might need to specify -m <vendor>:<mainboard>.\n"); return 0; } @@ -104,7 +104,7 @@ int read_romlayout(char *name) romlayout = fopen(name, "r"); if (!romlayout) { - fprintf(stderr, "ERROR: Could not open rom layout (%s).\n", + fprintf(stderr, "ERROR: Could not open ROM layout (%s).\n", name); return -1; } @@ -154,8 +154,7 @@ int find_romentry(char *name) return i; } } - printf("not found.\n"); - // Not found. Error. + printf("not found.\n"); // Not found. Error. return -1; } |