From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19064 invoked by alias); 8 Jul 2011 12:35:49 -0000 Received: (qmail 18893 invoked by uid 9447); 8 Jul 2011 12:35:49 -0000 Date: Fri, 08 Jul 2011 12:35:00 -0000 Message-ID: <20110708123549.18891.qmail@sourceware.org> From: agk@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/daemons/dmeventd libdevmapper-event.c Mailing-List: contact lvm2-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: lvm2-cvs-owner@sourceware.org X-SW-Source: 2011-07/txt/msg00012.txt.bz2 CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: agk@sourceware.org 2011-07-08 12:35:48 Modified files: daemons/dmeventd: libdevmapper-event.c Log message: report which dev was not found Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/dmeventd/libdevmapper-event.c.diff?cvsroot=lvm2&r1=1.41&r2=1.42 --- LVM2/daemons/dmeventd/libdevmapper-event.c 2011/04/04 16:11:09 1.41 +++ LVM2/daemons/dmeventd/libdevmapper-event.c 2011/07/08 12:35:48 1.42 @@ -559,10 +559,19 @@ } if (!info.exists) { - log_error("_get_device_info: device not found"); + log_error("_get_device_info: %s%s%s%.0d%s%.0d%s%s: device not found", + dmevh->uuid ? : "", + (!dmevh->uuid && dmevh->dev_name) ? dmevh->dev_name : "", + (!dmevh->uuid && !dmevh->dev_name && dmevh->major > 0) ? "(" : "", + (!dmevh->uuid && !dmevh->dev_name && dmevh->major > 0) ? dmevh->major : 0, + (!dmevh->uuid && !dmevh->dev_name && dmevh->major > 0) ? ":" : "", + (!dmevh->uuid && !dmevh->dev_name && dmevh->minor > 0) ? dmevh->minor : 0, + (!dmevh->uuid && !dmevh->dev_name && dmevh->major > 0) && dmevh->minor == 0 ? "0" : "", + (!dmevh->uuid && !dmevh->dev_name && dmevh->major > 0) ? ") " : ""); goto bad; } + return dmt; bad: