- fix error msg on kvm_openfiles failure
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 */
/* #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 */