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>
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 @@
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;
}