drm/nouveau: print correct engine number which failed to unload/idle
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Sun, 6 Nov 2011 19:32:03 +0000 (20:32 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 21 Dec 2011 09:01:30 +0000 (19:01 +1000)
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_drv.c

index c033a0a4f2b219e2c06c5b4bfb638f305bf08fb2..ffde896b1f3cc370e7cdbee2812bdc2b9a2e109e 100644 (file)
@@ -222,7 +222,7 @@ nouveau_pci_suspend(struct pci_dev *pdev, pm_message_t pm_state)
 
                ret = dev_priv->eng[e]->fini(dev, e, true);
                if (ret) {
-                       NV_ERROR(dev, "... engine %d failed: %d\n", i, ret);
+                       NV_ERROR(dev, "... engine %d failed: %d\n", e, ret);
                        goto out_abort;
                }
        }