diff options
Diffstat (limited to 'src/i830_debug.c')
-rw-r--r-- | src/i830_debug.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/i830_debug.c b/src/i830_debug.c index b5442577..6d43cd60 100644 --- a/src/i830_debug.c +++ b/src/i830_debug.c @@ -35,7 +35,7 @@ /* XXX: What was the syntax for sticking quotes around the "reg" argument? */ #define DEFINEREG(reg) \ - { reg, NULL, 0 } + { reg, #reg, 0 } static struct i830SnapshotRec { int reg; @@ -129,3 +129,14 @@ void i830CompareRegsToSnapshot(ScrnInfoPtr pScrn) } } } + +void i830DumpRegs (ScrnInfoPtr pScrn) +{ + I830Ptr pI830 = I830PTR(pScrn); + int i; + + for (i = 0; i < NUM_I830_SNAPSHOTREGS; i++) { + xf86DrvMsg (pScrn->scrnIndex, X_WARNING, "%10.10s: 0x%08x\n", + i830_snapshot[i].name, (unsigned int) INREG(i830_snapshot[i].reg)); + } +} |