Changeset 3dbe2d1f in mainline for uspace/libc/generic/io/printf_core.c
- Timestamp:
- 2007-04-07T18:00:18Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2a98e58
- Parents:
- 5b303ba
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/libc/generic/io/printf_core.c
r5b303ba r3dbe2d1f 41 41 #include <ctype.h> 42 42 #include <string.h> 43 /* For serialization */44 #include <async.h>45 43 46 44 #define __PRINTF_FLAG_PREFIX 0x00000001 /**< show prefixes 0x or 0*/ … … 93 91 size_t count; 94 92 95 if (str == NULL) {93 if (str == NULL) 96 94 return printf_putnchars("(NULL)", 6, ps); 97 }98 95 99 96 for (count = 0; str[count] != 0; count++); 100 97 101 if (ps->write((void *) str, count, ps->data) == count) {98 if (ps->write((void *) str, count, ps->data) == count) 102 99 return 0; 103 }104 100 105 101 return EOF; … … 448 444 uint64_t flags; 449 445 450 /* Don't let other threads interfere */451 async_serialize_start();452 453 446 counter = 0; 454 447 … … 682 675 } 683 676 684 async_serialize_end();685 677 return counter; 686 678 minus_out: 687 async_serialize_end();688 679 return -counter; 689 680 }
Note:
See TracChangeset
for help on using the changeset viewer.