From 9ada146a16bcf220b2dd2936fb3a0349a31e99d3 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Fri, 3 Oct 2008 14:40:18 -0400 Subject: xf86RegisterResources: Always print any failed registrations. --- hw/xfree86/common/xf86Bus.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/xfree86/common/xf86Bus.c b/hw/xfree86/common/xf86Bus.c index 364df1b4a..245bac04d 100644 --- a/hw/xfree86/common/xf86Bus.c +++ b/hw/xfree86/common/xf86Bus.c @@ -1522,11 +1522,11 @@ xf86RegisterResources(int entityIndex, resList list, unsigned long access) #ifdef DEBUG xf86MsgVerb(X_INFO, 3,"Resources after driver initialization\n"); xf86PrintResList(3, Acc); - if (res) xf86MsgVerb(X_INFO, 3, - "Failed Resources after driver initialization " - "for Entity: %i\n",entityIndex); - xf86PrintResList(3, res); #endif + if (res) { + xf86MsgVerb(X_INFO, 3, "Failed to register resources:\n"); + xf86PrintResList(3, res); + } return res; } -- cgit v1.2.3