All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] lcd_putc bug?
@ 2009-02-03 18:44 Derek Ou
  2009-02-03 19:23 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Derek Ou @ 2009-02-03 18:44 UTC (permalink / raw)
  To: u-boot

In the lcd_putc() of common/lcd.c, line 189 handles tab '\t'.  And the 
following lines:
            console_col |=  8;
            console_col &= ~7;
seems to have problems.  If console_col is 9, it will become 8 after the 
above two lines, which means instead of tab of 8 spaces, it goes back 
1.  Is this intentional or a bug?

I think it should be console_col +=  8; instead of console_col |=  8;

Derek

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-03 19:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-03 18:44 [U-Boot] lcd_putc bug? Derek Ou
2009-02-03 19:23 ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.