diff options
author | Peter Stuge <peter@stuge.se> | 2009-05-06 13:38:55 +0000 |
---|---|---|
committer | Peter Stuge <peter@stuge.se> | 2009-05-06 13:38:55 +0000 |
commit | f579f789151b365515447f95cf555669c1dd8a0b (patch) | |
tree | 4f3318c5cc5f83ecc6e5a3759affc4dcda045e36 | |
parent | 29a101d719e4b171e3b5bd26516ff149c05c722d (diff) | |
download | flashrom-f579f789151b365515447f95cf555669c1dd8a0b.zip flashrom-f579f789151b365515447f95cf555669c1dd8a0b.tar.gz |
Touch up some error messages in enable_flash_cs5536()
Corresponding to flashrom svn r465.
Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Peter Stuge <peter@stuge.se>
-rw-r--r-- | chipset_enable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chipset_enable.c b/chipset_enable.c index 99ed3d5..c52dd15 100644 --- a/chipset_enable.c +++ b/chipset_enable.c @@ -512,13 +512,13 @@ static int enable_flash_cs5536(struct pci_dev *dev, const char *name) fd_msr = open("/dev/cpu/0/msr", O_RDWR); if (fd_msr == -1) { - perror("open msr"); + perror("open(/dev/cpu/0/msr)"); + printf("Cannot operate on MSR. Did you run 'modprobe msr'?\n"); return -1; } if (lseek64(fd_msr, (off64_t) MSR_RCONF_DEFAULT, SEEK_SET) == -1) { perror("lseek64"); - printf("Cannot operate on MSR. Did you run 'modprobe msr'?\n"); close(fd_msr); return -1; } |