drm/nouveau/bios: tiny debugging messages fixes
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Sun, 30 Dec 2012 15:35:24 +0000 (16:35 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 20 Feb 2013 06:00:35 +0000 (16:00 +1000)
COPY_ZM_REG: destination and source addresses were swapped
RAM_RESTRICT_ZM_REG_GROUP: missing 0x prefix for register address

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/bios/init.c

index c97c972..7d2ce11 100644 (file)
@@ -1816,7 +1816,7 @@ init_ram_restrict_zm_reg_group(struct nvbios_init *init)
        u8 i, j;
 
        trace("RAM_RESTRICT_ZM_REG_GROUP\t"
-             "R[%08x] 0x%02x 0x%02x\n", addr, incr, num);
+             "R[0x%08x] 0x%02x 0x%02x\n", addr, incr, num);
        init->offset += 7;
 
        for (i = 0; i < num; i++) {
@@ -1849,7 +1849,7 @@ init_copy_zm_reg(struct nvbios_init *init)
        u32 sreg = nv_ro32(bios, init->offset + 1);
        u32 dreg = nv_ro32(bios, init->offset + 5);
 
-       trace("COPY_ZM_REG\tR[0x%06x] = R[0x%06x]\n", sreg, dreg);
+       trace("COPY_ZM_REG\tR[0x%06x] = R[0x%06x]\n", dreg, sreg);
        init->offset += 9;
 
        init_wr32(init, dreg, init_rd32(init, sreg));