summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToMe25 <ToMe25@gmx.de>2021-04-19 15:40:25 +0200
committerToMe25 <ToMe25@gmx.de>2021-04-19 15:40:25 +0200
commit68b52696076f270e590b8627a2d2f77660f6c436 (patch)
treeceedd7270a45fbdb15b62eb946c81d8a03f9bb41
parent43e4c5257918fafdfb32eb1cca40c7ae0b4806b4 (diff)
downloadlibgtop-68b52696076f270e590b8627a2d2f77660f6c436.tar.gz
Fix msg_limits.c and sem_limits.c error message
-rw-r--r--sysdeps/openbsd/msg_limits.c4
-rw-r--r--sysdeps/openbsd/sem_limits.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/openbsd/msg_limits.c b/sysdeps/openbsd/msg_limits.c
index 840d75e2..63af68f3 100644
--- a/sysdeps/openbsd/msg_limits.c
+++ b/sysdeps/openbsd/msg_limits.c
@@ -62,12 +62,12 @@ _glibtop_init_msg_limits_p (glibtop *server)
mib[2] = KERN_SYSVIPC_MSG_INFO;
if ((msgsi = malloc(len)) == NULL) {
- glibtop_warn_io_r (server, "malloc (shm_limits)");
+ glibtop_warn_io_r (server, "malloc (msg_limits)");
return;
}
if (sysctl(mib, 3, msgsi, &len, NULL, 0) < 0) {
- glibtop_warn_io_r (server, "sysctl (shm_limits)");
+ glibtop_warn_io_r (server, "sysctl (msg_limits)");
return;
}
diff --git a/sysdeps/openbsd/sem_limits.c b/sysdeps/openbsd/sem_limits.c
index 12e88ff0..b68e41b9 100644
--- a/sysdeps/openbsd/sem_limits.c
+++ b/sysdeps/openbsd/sem_limits.c
@@ -60,12 +60,12 @@ _glibtop_init_sem_limits_p (glibtop *server)
mib[2] = KERN_SYSVIPC_SEM_INFO;
if ((semsi = malloc(len)) == NULL) {
- glibtop_warn_io_r (server, "malloc (shm_limits)");
+ glibtop_warn_io_r (server, "malloc (sem_limits)");
return;
}
if (sysctl(mib, 3, semsi, &len, NULL, 0) < 0) {
- glibtop_warn_io_r (server, "sysctl (shm_limits)");
+ glibtop_warn_io_r (server, "sysctl (sem_limits)");
return;
}