summaryrefslogtreecommitdiffstats
path: root/lib/libkvm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libkvm')
-rw-r--r--lib/libkvm/kvm_getswapinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libkvm/kvm_getswapinfo.c b/lib/libkvm/kvm_getswapinfo.c
index 535a9d0..05aeedf 100644
--- a/lib/libkvm/kvm_getswapinfo.c
+++ b/lib/libkvm/kvm_getswapinfo.c
@@ -191,7 +191,7 @@ kvm_getswapinfo(
sizeof(swap_ary[i].ksw_devname),
"%s%s",
((flags & SWIF_DEV_PREFIX) ? "/dev/" : ""),
- devname(swinfo.sw_dev, S_IFBLK)
+ devname(swinfo.sw_dev, S_IFCHR)
);
}
}
OpenPOWER on IntegriCloud