From d70f0203a22955d8dee543a03baa14229a48622c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Wed, 29 Mar 2006 09:18:21 +0000 Subject: [PATCH] improved error output git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16919 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/driveinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/driveinfo.c b/src/bin/driveinfo.c index 90263a951e..2e3ff7a4ff 100644 --- a/src/bin/driveinfo.c +++ b/src/bin/driveinfo.c @@ -57,7 +57,7 @@ static void dump_geom(int dev, bool bios) device_geometry geom; if (ioctl(dev, bios?B_GET_BIOS_GEOMETRY:B_GET_GEOMETRY, &geom, sizeof(geom)) < 0) { - perror("ioctl(B_GET_(BIOS_)GEOMETRY)"); + perror(bios ? "ioctl(B_GET_BIOS_GEOMETRY)" : "ioctl(B_GET_GEOMETRY)"); return; } printf("%sgeometry:\n", bios?"bios ":"");