summaryrefslogtreecommitdiff
path: root/spi.c
diff options
context:
space:
mode:
authorsnelson <snelson@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2010-05-07 20:09:04 +0000
committersnelson <snelson@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2010-05-07 20:09:04 +0000
commit234e9526ab20c1acc7b50263df061cd8f4e510a1 (patch)
tree544d1dea8706b7b9e3591f81eba8be45fc054ab8 /spi.c
parentc0a76f5940ce3d802cc3ecaa2d7c16c5c34cb0d0 (diff)
downloadflashrom-234e9526ab20c1acc7b50263df061cd8f4e510a1.tar.gz
convert programmer print messages to msg_p*
convert general print messages to msg_g* a few fixes as suggested by Carl-Daniel Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@997 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'spi.c')
-rw-r--r--spi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/spi.c b/spi.c
index 8bbbe6e..9bb4687 100644
--- a/spi.c
+++ b/spi.c
@@ -130,7 +130,7 @@ int spi_send_command(unsigned int writecnt, unsigned int readcnt,
const unsigned char *writearr, unsigned char *readarr)
{
if (!spi_programmer[spi_controller].command) {
- fprintf(stderr, "%s called, but SPI is unsupported on this "
+ msg_perr("%s called, but SPI is unsupported on this "
"hardware. Please report a bug.\n", __func__);
return 1;
}
@@ -142,7 +142,7 @@ int spi_send_command(unsigned int writecnt, unsigned int readcnt,
int spi_send_multicommand(struct spi_command *cmds)
{
if (!spi_programmer[spi_controller].multicommand) {
- fprintf(stderr, "%s called, but SPI is unsupported on this "
+ msg_perr("%s called, but SPI is unsupported on this "
"hardware. Please report a bug.\n", __func__);
return 1;
}
@@ -182,7 +182,7 @@ int default_spi_send_multicommand(struct spi_command *cmds)
int spi_chip_read(struct flashchip *flash, uint8_t *buf, int start, int len)
{
if (!spi_programmer[spi_controller].read) {
- fprintf(stderr, "%s called, but SPI read is unsupported on this"
+ msg_perr("%s called, but SPI read is unsupported on this"
" hardware. Please report a bug.\n", __func__);
return 1;
}
@@ -197,7 +197,7 @@ int spi_chip_read(struct flashchip *flash, uint8_t *buf, int start, int len)
int spi_chip_write_256(struct flashchip *flash, uint8_t *buf)
{
if (!spi_programmer[spi_controller].write_256) {
- fprintf(stderr, "%s called, but SPI page write is unsupported "
+ msg_perr("%s called, but SPI page write is unsupported "
" on this hardware. Please report a bug.\n", __func__);
return 1;
}