Changeset 02a99d2 in mainline for src/debug/print.c


Ignore:
Timestamp:
2005-05-11T19:51:55Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
69515260
Parents:
45671f48
Message:

NDEBUG debug symbol, ASSERT debug macro, fancier panic() in debug mode
indentation fixes, ASSERTs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/debug/print.c

    r45671f48 r02a99d2  
    4747void print_str(const char *str)
    4848{
    49         int i = 0;
     49        int i = 0;
    5050        char c;
    51    
     51       
    5252        while (c = str[i++])
    53             putchar(c);
     53                putchar(c);
    5454}
    5555
     
    8585 *
    8686 */
    87 void print_number(const __native num, const int base)
     87void print_number(const __native num, const unsigned int base)
    8888{
    8989        int val = num;
    9090        char d[sizeof(__native)*8+1];           /* this is good enough even for base == 2 */
    91         int i = sizeof(__native)*8-1;
    92    
     91        int i = sizeof(__native)*8-1;
     92       
    9393        do {
    9494                d[i--] = digits[val % base];
Note: See TracChangeset for help on using the changeset viewer.