Changeset 272c219 in mainline for arch/ppc32/loader/printf.c
- Timestamp:
- 2006-03-13T18:42:58Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- eebd172
- Parents:
- 8cbe350
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ppc32/loader/printf.c
r8cbe350 r272c219 33 33 34 34 35 void puts(const char *str) 36 { 37 int len = 0; 38 39 while (str[len] != 0) 40 len++; 41 42 ofw_write(str, len); 43 } 44 45 35 46 /** Print hexadecimal digits 36 47 * … … 74 85 75 86 d[sizeof(__native) * 8] = 0; 76 ofw_puts(&d[i + 1]);87 puts(&d[i + 1]); 77 88 } 78 89 … … 157 168 */ 158 169 case 's': 159 ofw_puts(va_arg(ap, char_ptr));170 puts(va_arg(ap, char_ptr)); 160 171 goto loop; 161 172 … … 168 179 */ 169 180 case 'P': 170 ofw_puts("0x");181 puts("0x"); 171 182 case 'p': 172 183 print_fixed_hex(va_arg(ap, __native), sizeof(__native)); … … 174 185 175 186 case 'Q': 176 ofw_puts("0x");187 puts("0x"); 177 188 case 'q': 178 189 print_fixed_hex(va_arg(ap, __u64), INT64); … … 180 191 181 192 case 'L': 182 ofw_puts("0x");193 puts("0x"); 183 194 case 'l': 184 195 print_fixed_hex(va_arg(ap, __native), INT32); … … 186 197 187 198 case 'W': 188 ofw_puts("0x");199 puts("0x"); 189 200 case 'w': 190 201 print_fixed_hex(va_arg(ap, __native), INT16); … … 192 203 193 204 case 'B': 194 ofw_puts("0x");205 puts("0x"); 195 206 case 'b': 196 207 print_fixed_hex(va_arg(ap, __native), INT8); … … 205 216 206 217 case 'X': 207 ofw_puts("0x");218 puts("0x"); 208 219 case 'x': 209 220 print_number(va_arg(ap, __native), 16);
Note:
See TracChangeset
for help on using the changeset viewer.