Blob Blame History Raw
From 4d7e16d3a36ce3875b9f34a04f4078cc5b935417 Mon Sep 17 00:00:00 2001
From: Joel Granados Moreno <jgranado@redhat.com>
Date: Tue, 30 Jun 2009 17:07:06 +0200
Subject: [PATCH] Identify the device by path.

* libparted/labels/dasd.c (dasd_probe):  The element name is not defined
in the dev structure.
---
 libparted/labels/dasd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libparted/labels/dasd.c b/libparted/labels/dasd.c
index e3e5d1b..40c0546 100644
--- a/libparted/labels/dasd.c
+++ b/libparted/labels/dasd.c
@@ -166,7 +166,7 @@ dasd_probe (const PedDevice *dev)
  error_cleanup:
 	fdasd_cleanup(&anchor);
 	ped_exception_throw(PED_EXCEPTION_ERROR,PED_EXCEPTION_IGNORE_CANCEL,
-			    "Error while probing device %s.", dev->name);
+			    "Error while probing device %s.", dev->path);
 
 	return 0;
 }
-- 
1.6.0.6