1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-27 23:22:37 +02:00

hwaccess_x86_io: merge error message in rget_io_perms()

Have the same error message on all platforms.

Change-Id: I7aae096deedd9b78f5fd38a73390cd8a33528545
Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/61966
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Thomas Heijligen 2022-02-15 11:12:52 +01:00 committed by Nico Huber
parent 9212ee2191
commit 60005a88ea

View File

@ -62,13 +62,10 @@ int rget_io_perms(void)
#endif #endif
msg_perr("ERROR: Could not get I/O privileges (%s).\n", strerror(errno)); msg_perr("ERROR: Could not get I/O privileges (%s).\n", strerror(errno));
msg_perr("You need to be root.\n"); msg_perr("You need to be root.\n");
#if defined (__OpenBSD__) msg_perr("On OpenBSD set securelevel=-1 in /etc/rc.securelevel and\n"
msg_perr("If you are root already please set securelevel=-1 in /etc/rc.securelevel and\n"
"reboot, or reboot into single user mode.\n"); "reboot, or reboot into single user mode.\n");
#elif defined(__NetBSD__) msg_perr("On NetBSD reboot into single user mode or make sure\n"
msg_perr("If you are root already please reboot into single user mode or make sure\n"
"that your kernel configuration has the option INSECURE enabled.\n"); "that your kernel configuration has the option INSECURE enabled.\n");
#endif
return 1; return 1;
} else { } else {
register_shutdown(release_io_perms, NULL); register_shutdown(release_io_perms, NULL);