From d3685d526e4bd05f18f3d4a146ae8b25e889f9cd Mon Sep 17 00:00:00 2001 From: Kevin Brace Date: Wed, 24 Feb 2016 01:26:40 -0800 Subject: [PATCH 2/2] Added debug messages to via_vt1632_probe Added debug messages to via_vt1632_probe function inside via_vt1632.c. Signed-off-by: Kevin Brace --- src/via_vt1632.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/via_vt1632.c b/src/via_vt1632.c index 8b9edf8..d0e5917 100644 --- a/src/via_vt1632.c +++ b/src/via_vt1632.c @@ -211,11 +211,13 @@ via_vt1632_probe(ScrnInfoPtr pScrn, I2CDevPtr pDev) { VendorID = buf; xf86I2CReadByte(pDev, 1, &buf); VendorID |= buf << 8; + DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Vendor ID: 0x%04x\n", VendorID)); xf86I2CReadByte(pDev, 2, &buf); DeviceID = buf; xf86I2CReadByte(pDev, 3, &buf); DeviceID |= buf << 8; + DEBUG(xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Device ID: 0x%04x\n", DeviceID)); if (VendorID != 0x1106 || DeviceID != 0x3192) { xf86DrvMsg(pScrn->scrnIndex, X_PROBED, -- 1.7.9.5