processes: Solaris: Consistently use long to represent a pid
[collectd.git] / src / swap.c
index b3aa4f7..fb50cf3 100644 (file)
@@ -160,7 +160,7 @@ static int swap_init (void) /* {{{ */
 /* #endif defined(VM_SWAPUSAGE) */
 
 #elif HAVE_LIBKVM_GETSWAPINFO
-       char errbuf[1024];
+       char errbuf[_POSIX2_LINE_MAX];
 
        if (kvm_obj != NULL)
        {
@@ -174,7 +174,7 @@ static int swap_init (void) /* {{{ */
 
        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 */