X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Flpar.c;h=c4189b7d32ae035da5122cd36570a6eec05efe0a;hb=849f5394cce97a76da080f6cd9e5194b7f4ee0f0;hp=3ecf0495fada9167ee899d09d4692bd14bb71719;hpb=4eca75de34e9c3d7f2391b9c7a5951a27a713804;p=collectd.git diff --git a/src/lpar.c b/src/lpar.c index 3ecf0495..c4189b7d 100644 --- a/src/lpar.c +++ b/src/lpar.c @@ -76,9 +76,8 @@ static int lpar_init(void) { sizeof(perfstat_partition_total_t), /* number = */ 1 /* (must be 1) */); if (status != 1) { - char errbuf[1024]; - ERROR("lpar plugin: perfstat_partition_total failed: %s (%i)", - sstrerror(errno, errbuf, sizeof(errbuf)), status); + ERROR("lpar plugin: perfstat_partition_total failed: %s (%i)", STRERRNO, + status); return -1; } @@ -138,9 +137,8 @@ static int lpar_read(void) { &lparstats, sizeof(perfstat_partition_total_t), /* number = */ 1 /* (must be 1) */); if (status != 1) { - char errbuf[1024]; - ERROR("lpar plugin: perfstat_partition_total failed: %s (%i)", - sstrerror(errno, errbuf, sizeof(errbuf)), status); + ERROR("lpar plugin: perfstat_partition_total failed: %s (%i)", STRERRNO, + status); return -1; }