libpayload: fix compile error with enabled USB_DEBUG
authorMathias Krause <mathias.krause@secunet.com>
Fri, 17 Feb 2012 11:23:26 +0000 (12:23 +0100)
committerPeter Stuge <peter@stuge.se>
Mon, 20 Feb 2012 20:46:32 +0000 (21:46 +0100)
Commit c4348d0 ("libpayload: Remove bitfield use from OHCI data
structures") missed to adapt a debug message. This patch fixes this.

Change-Id: I5f6a4be9c7f6f99cb103926772717e15a3cbca70
Signed-off-by: Mathias Krause <mathias.krause@secunet.com>
Reviewed-on: http://review.coreboot.org/653
Tested-by: build bot (Jenkins)
Reviewed-by: Bernhard Urban <lewurm@gmail.com>
Reviewed-by: Peter Stuge <peter@stuge.se>
payloads/libpayload/drivers/usb/ohci.c

index 4095d693a6f13f23e6b9f54a6f2079aa36dad49f..3a1b51d19c580ca8c5eb386036dde2bb0cc854bc 100644 (file)
@@ -190,7 +190,7 @@ dump_td(td_t *cur, int level)
        const char *spc=spaces+(10-level);
        debug("%std at %x (%s), condition code: %s\n", spc, cur, direction[(cur->config & TD_DIRECTION_MASK) >> TD_DIRECTION_SHIFT],
                completion_codes[(cur->config & TD_CC_MASK) >> TD_CC_SHIFT]);
-       debug("%s toggle: %x\n", spc, cur->toggle);
+       debug("%s toggle: %x\n", spc, !!(cur->config & TD_TOGGLE_DATA1));
 #endif
 }