mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-30 00:13:43 +02:00
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>
This commit is contained in:
parent
f6e3efb9c4
commit
7725fa8d63
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user