diff options
author | Sean Nelson <audiohacked@gmail.com> | 2010-01-09 23:58:37 +0000 |
---|---|---|
committer | Sean Nelson <audiohacked@gmail.com> | 2010-01-09 23:58:37 +0000 |
commit | 18e0bfc283de09628ad831580ceed356daec2fab (patch) | |
tree | f6c7af9a88a0aa0803c7ceaa02903d76719ad431 | |
parent | 37b31acf559550d1e06795fd4c7dd3c93ddffb04 (diff) | |
download | flashrom-18e0bfc283de09628ad831580ceed356daec2fab.zip flashrom-18e0bfc283de09628ad831580ceed356daec2fab.tar.gz |
Convert all messages in bitbang_spi.c to the new message infrastructure
Corresponding to flashrom svn r852.
Signed-off-by: Sean Nelson <audiohacked@gmail.com>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
-rw-r--r-- | bitbang_spi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbang_spi.c b/bitbang_spi.c index abf5530..8925884 100644 --- a/bitbang_spi.c +++ b/bitbang_spi.c @@ -99,14 +99,14 @@ int bitbang_spi_send_command(unsigned int writecnt, unsigned int readcnt, if (bufsize > oldbufsize) { bufout = realloc(bufout, bufsize); if (!bufout) { - fprintf(stderr, "Out of memory!\n"); + msg_perr("Out of memory!\n"); if (bufin) free(bufin); exit(1); } bufin = realloc(bufout, bufsize); if (!bufin) { - fprintf(stderr, "Out of memory!\n"); + msg_perr("Out of memory!\n"); if (bufout) free(bufout); exit(1); @@ -143,7 +143,7 @@ int bitbang_spi_write_256(struct flashchip *flash, uint8_t *buf) int total_size = 1024 * flash->total_size; int i; - printf_debug("total_size is %d\n", total_size); + msg_pdbg("total_size is %d\n", total_size); for (i = 0; i < total_size; i += 256) { int l, r; if (i + 256 <= total_size) @@ -152,7 +152,7 @@ int bitbang_spi_write_256(struct flashchip *flash, uint8_t *buf) l = total_size - i; if ((r = spi_nbyte_program(i, &buf[i], l))) { - fprintf(stderr, "%s: write fail %d\n", __func__, r); + msg_perr("%s: write fail %d\n", __func__, r); return 1; } |