[Nouveau] [PATCH] drm/nouveau: printk something when nStatus == 0
Marcin Slusarz
marcin.slusarz at gmail.com
Sun Dec 27 13:53:01 PST 2009
when nStatus == 0, nouveau_graph_dump_trap_info printks
something like this:
"PGRAPH_ERROR - nSource: PROTECTION_ERROR DMA_W_PROTECTION, nStatus:\n"
without any information about status - printk additional "0"
Signed-off-by: Marcin Slusarz <marcin.slusarz at gmail.com>
---
drivers/gpu/drm/nouveau/nouveau_irq.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/nouveau_irq.c b/drivers/gpu/drm/nouveau/nouveau_irq.c
index 370c72c..57ee73a 100644
--- a/drivers/gpu/drm/nouveau/nouveau_irq.c
+++ b/drivers/gpu/drm/nouveau/nouveau_irq.c
@@ -284,6 +284,10 @@ nouveau_print_bitfield_names_(uint32_t value,
* Also the caller is responsible for adding the newline.
*/
int i;
+ if (!value) {
+ printk(" 0");
+ return;
+ }
for (i = 0; i < namelist_len; ++i) {
uint32_t mask = namelist[i].mask;
if (value & mask) {
--
1.6.6.rc3
More information about the Nouveau
mailing list