blob: 697f97eca06f0e6cfc0bd864787542cb05e4e2c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
$NetBSD: patch-biosdecode.c,v 1.1 2022/11/28 04:26:08 mrg Exp $
* Use /dev/smbios instead of /dev/mem on NetBSD if available.
--- biosdecode.c.orig 2022-06-27 08:06:32.000000000 -0700
+++ biosdecode.c 2022-11-27 14:28:45.654835935 -0800
@@ -645,12 +645,12 @@
static const char *help =
"Usage: biosdecode [OPTIONS]\n"
"Options are:\n"
- " -d, --dev-mem FILE Read memory from device FILE (default: " DEFAULT_MEM_DEV ")\n"
+ " -d, --dev-mem FILE Read memory from device FILE (default: %s)\n"
" --pir full Decode the details of the PCI IRQ routing table\n"
" -h, --help Display this help text and exit\n"
" -V, --version Display the version and exit\n";
- printf("%s", help);
+ printf(help, DEFAULT_MEM_DEV);
}
int main(int argc, char * const argv[])
|