Changeset 0d11fc1c in mainline
- Timestamp:
- 2006-06-06T16:37:41Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1249e1
- Parents:
- 63bb83e
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
console/console.c
r63bb83e r0d11fc1c 372 372 /* Commit hangup */ 373 373 ipc_answer_fast(callid, 0,0,0); 374 conn->used = 0; 374 375 async_serialize_end(); 375 376 return; -
klog/klog.c
r63bb83e r0d11fc1c 42 42 43 43 async_serialize_start(); 44 /* TODO: remove workaround around non-functional vsnprintf */45 44 for (i=0; klog[i + IPC_GET_ARG2(*call)] && i < IPC_GET_ARG3(*call); i++) 46 45 putchar(klog[i + IPC_GET_ARG2(*call)]); -
libc/generic/io/printf_core.c
r63bb83e r0d11fc1c 38 38 #include <ctype.h> 39 39 #include <string.h> 40 /* For serialization */ 41 #include <async.h> 40 42 41 43 #define __PRINTF_FLAG_PREFIX 0x00000001 /**< show prefixes 0x or 0*/ … … 445 447 uint64_t flags; 446 448 449 /* Don't let other threads interfere */ 450 async_serialize_start(); 451 447 452 counter = 0; 448 453 … … 453 458 if (i > j) { 454 459 if ((retval = printf_putnchars(&fmt[j], (size_t)(i - j), ps)) == EOF) { /* error */ 455 return -counter;460 goto minus_out; 456 461 } 457 462 counter += retval; … … 549 554 case 's': 550 555 if ((retval = print_string(va_arg(ap, char*), width, precision, flags, ps)) == EOF) { 551 return -counter;556 goto minus_out; 552 557 }; 553 558 … … 558 563 c = va_arg(ap, unsigned int); 559 564 if ((retval = print_char(c, width, flags, ps)) == EOF) { 560 return -counter;565 goto minus_out; 561 566 }; 562 567 … … 639 644 break; 640 645 default: /* Unknown qualifier */ 641 return -counter;646 goto minus_out; 642 647 643 648 } … … 658 663 659 664 if ((retval = print_number(number, width, precision, base, flags, ps)) == EOF ) { 660 return -counter;665 goto minus_out; 661 666 }; 662 667 … … 671 676 if (i > j) { 672 677 if ((retval = printf_putnchars(&fmt[j], (size_t)(i - j), ps)) == EOF) { /* error */ 673 return -counter;678 goto minus_out; 674 679 } 675 680 counter += retval; 676 681 } 677 682 683 async_serialize_end(); 678 684 return counter; 685 minus_out: 686 async_serialize_end(); 687 return -counter; 679 688 } 680 689
Note:
See TracChangeset
for help on using the changeset viewer.