summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b5230d4)
raw | patch | inline | side by side (parent: b5230d4)
author | ale@biancalanas.net <ale@biancalanas.net> | |
Tue, 5 May 2015 02:01:29 +0000 (02:01 +0000) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Tue, 5 May 2015 15:41:45 +0000 (17:41 +0200) |
- fix error msg on kvm_openfiles failure
src/processes.c | patch | blob | history | |
src/swap.c | patch | blob | history |
diff --git a/src/processes.c b/src/processes.c
index 6caea54c37ffb5677ce17cc63be3e77c9eda158f..d6b48452ef44416078308ed2402e373b8c21a411 100644 (file)
--- a/src/processes.c
+++ b/src/processes.c
int wait = 0;
kvm_t *kd;
- char errbuf[1024];
+ char errbuf[_POSIX2_LINE_MAX];
struct kinfo_proc *procs; /* array of processes */
struct kinfo_proc *proc_ptr = NULL;
int count; /* returns number of processes */
diff --git a/src/swap.c b/src/swap.c
index b3aa4f7dbc4bb3c7b5e8cacc7432b755215c0549..fb50cf38bae32639361d3e4d1ae1aaa4a0348452 100644 (file)
--- a/src/swap.c
+++ b/src/swap.c
/* #endif defined(VM_SWAPUSAGE) */
#elif HAVE_LIBKVM_GETSWAPINFO
- char errbuf[1024];
+ char errbuf[_POSIX2_LINE_MAX];
if (kvm_obj != NULL)
{
if (kvm_obj == NULL)
{
- ERROR ("swap plugin: kvm_open failed, %s", errbuf);
+ ERROR ("swap plugin: kvm_openfiles failed, %s", errbuf);
return (-1);
}
/* #endif HAVE_LIBKVM_GETSWAPINFO */