From 84bb2d1162dcdeb35e4d4499c2daf1f5a15cb13f Mon Sep 17 00:00:00 2001
From: Hans Ulrich Niedermann
Date: Sat, 22 Sep 2007 12:44:43 +0200
Subject: [PATCH] Integer AtomBIOS Query reply: print decimal AND hex value
Decimal-only output of memory addresses is confusing, as is hex-only
output of other numbers.
---
src/rhd_atombios.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/rhd_atombios.c b/src/rhd_atombios.c
index 9b7f28a..cebb213 100644
--- a/src/rhd_atombios.c
+++ b/src/rhd_atombios.c
@@ -875,8 +875,9 @@ RHDAtomBIOSFunc(int scrnIndex, atomBIOSHandlePtr handle, AtomBiosFunc func,
return ATOM_NOT_IMPLEMENTED;
}
if (ret == ATOM_SUCCESS)
- xf86DrvMsg(scrnIndex,X_INFO,"%s: %i\n",
- AtomBIOSQueryStr[func - ATOM_QUERY_FUNCS], (unsigned int)val);
+ xf86DrvMsg(scrnIndex,X_INFO,"%s: %i (0x%x)\n",
+ AtomBIOSQueryStr[func - ATOM_QUERY_FUNCS],
+ (unsigned int)val, (unsigned int)val);
else
xf86DrvMsg(scrnIndex,X_INFO,"Query for %s: %s\n",
AtomBIOSQueryStr[func - ATOM_QUERY_FUNCS],
--
1.5.2.4