From 68b52696076f270e590b8627a2d2f77660f6c436 Mon Sep 17 00:00:00 2001 From: ToMe25 Date: Mon, 19 Apr 2021 15:40:25 +0200 Subject: Fix msg_limits.c and sem_limits.c error message --- sysdeps/openbsd/msg_limits.c | 4 ++-- sysdeps/openbsd/sem_limits.c | 4 ++-- 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; } -- cgit v1.2.1