diff options
author | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2011-05-28 02:37:14 +0000 |
---|---|---|
committer | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2011-05-28 02:37:14 +0000 |
commit | 355cbfdbef1fbd41b635a5b92195689fd4d3c0b1 (patch) | |
tree | bf90deeafdc4ff48c7778e0f48e716befa48cf7c /flashrom.c | |
parent | 0fbba98c27433c97f42936e9e16805089ce3a296 (diff) | |
download | flashrom-355cbfdbef1fbd41b635a5b92195689fd4d3c0b1.tar.gz flashrom-355cbfdbef1fbd41b635a5b92195689fd4d3c0b1.tar.bz2 flashrom-355cbfdbef1fbd41b635a5b92195689fd4d3c0b1.zip |
Small fixes
- missing spaces in code and output
- improved documentation/naming/output
- missing line breaks in spi probing functions
Corresponding to flashrom svn r1321.
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'flashrom.c')
-rw-r--r-- | flashrom.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/flashrom.c b/flashrom.c index 14d526382..e9e6a7751 100644 --- a/flashrom.c +++ b/flashrom.c @@ -1312,7 +1312,7 @@ int read_flash_to_file(struct flashchip *flash, char *filename) goto out_free; } - ret = write_buf_to_file(buf, flash->total_size * 1024, filename); + ret = write_buf_to_file(buf, size, filename); out_free: free(buf); msg_cinfo("%s.\n", ret ? "FAILED" : "done"); @@ -1489,13 +1489,13 @@ static int check_block_eraser(struct flashchip *flash, int k, int log) if (!eraser.block_erase && eraser.eraseblocks[0].count) { if (log) msg_cdbg("eraseblock layout is known, but matching " - "block erase function is not implemented. "); + "block erase function is not implemented. "); return 1; } if (eraser.block_erase && !eraser.eraseblocks[0].count) { if (log) msg_cdbg("block erase function found, but " - "eraseblock layout is not defined. "); + "eraseblock layout is not defined. "); return 1; } return 0; |