1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-20 12:10:31 -04:00
ports/misc/hxtools/files/patch-sadmin_proc__iomem__count.c
Alexey Dokuchaev f423ead6e5 This is the collection of tools and scripts for different tasks written
by Jan Engelhardt, each of which seems to be too small to warrant their
own project.

WWW: http://inai.de/projects/hxtools/
2020-08-03 06:13:13 +00:00

20 lines
583 B
C

--- sadmin/proc_iomem_count.c.orig 2020-07-12 09:44:16 UTC
+++ sadmin/proc_iomem_count.c
@@ -17,7 +17,7 @@
static int main2(int argc, const char **argv)
{
- const char *file = "/proc/iomem";
+ const char *file = "/compat/linux/proc/iomem";
uint64_t start, end;
hxmc_t *ln = NULL;
char *e;
@@ -28,7 +28,7 @@ static int main2(int argc, const char **argv)
fp = fopen(file, "r");
if (fp == NULL) {
- fprintf(stderr, "fopen: /proc/iomem: %s\n", strerror(errno));
+ fprintf(stderr, "fopen: /compat/linux/proc/iomem: %s\n", strerror(errno));
return EXIT_FAILURE;
}