Annotation of pkgsrc/sysutils/dmidecode/patches/patch-dmiopt.c, revision 1.2
1.2 ! msaitoh 1: $NetBSD: patch-dmiopt.c,v 1.1 2022/11/28 04:26:08 mrg Exp $
1.1 mrg 2:
3: * Use /dev/smbios instead of /dev/mem on NetBSD if available.
4:
1.2 ! msaitoh 5: --- dmiopt.c.orig 2023-03-15 01:32:17.000000000 +0900
! 6: +++ dmiopt.c 2023-07-24 13:39:41.169153661 +0900
! 7: @@ -372,7 +372,7 @@ void print_help(void)
1.1 mrg 8: static const char *help =
9: "Usage: dmidecode [OPTIONS]\n"
10: "Options are:\n"
11: - " -d, --dev-mem FILE Read memory from device FILE (default: " DEFAULT_MEM_DEV ")\n"
12: + " -d, --dev-mem FILE Read memory from device FILE (default: %s)\n"
13: " -h, --help Display this help text and exit\n"
14: " -q, --quiet Less verbose output\n"
1.2 ! msaitoh 15: " --no-quirks Decode everything without quirks\n"
! 16: @@ -386,5 +386,5 @@ void print_help(void)
1.1 mrg 17: " --oem-string N Only display the value of the given OEM string\n"
18: " -V, --version Display the version and exit\n";
19:
20: - printf("%s", help);
21: + printf(help, DEFAULT_MEM_DEV);
22: }
CVSweb <webmaster@jp.NetBSD.org>