Changeset 523fad8 in mainline for libc/generic/io/print.c


Ignore:
Timestamp:
2006-04-16T13:18:43Z (19 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
da32cea
Parents:
9426c1a3
Message:

Bugfix in printf, some support for testing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libc/generic/io/print.c

    r9426c1a3 r523fad8  
    6969 * @return number of printed characters or EOF
    7070 */
    71                                                
    7271static int print_char(char c, int width, uint64_t flags)
    7372{
    7473        int counter = 0;
    75         char space = ' ';
    7674       
    7775        if (!(flags & __PRINTF_FLAG_LEFTALIGNED)) {
     
    257255                                        putchar('b');
    258256                                }
    259                                 written == 2;
     257                                written += 2;
    260258                                break;
    261259                        case 8:
Note: See TracChangeset for help on using the changeset viewer.