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 <[email protected]>
---
 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

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

Reply via email to