- Timestamp:
- 2012-04-23T22:51:36Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6a3808e
- Parents:
- 3293a94 (diff), 32fef47 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- kernel
- Files:
-
- 3 edited
-
generic/src/ipc/sysipc.c (modified) (4 diffs)
-
generic/src/printf/printf_core.c (modified) (2 diffs)
-
test/print/print1.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/sysipc.c
r3293a94 r7719958 111 111 switch (imethod) { 112 112 case IPC_M_CONNECTION_CLONE: 113 case IPC_M_C ONNECT_ME:113 case IPC_M_CLONE_ESTABLISH: 114 114 case IPC_M_PHONE_HUNGUP: 115 115 /* This message is meant only for the original recipient. */ … … 160 160 switch (IPC_GET_IMETHOD(call->data)) { 161 161 case IPC_M_CONNECTION_CLONE: 162 case IPC_M_C ONNECT_ME:162 case IPC_M_CLONE_ESTABLISH: 163 163 case IPC_M_CONNECT_TO_ME: 164 164 case IPC_M_CONNECT_ME_TO: … … 225 225 mutex_unlock(&phone->lock); 226 226 } 227 } else if (IPC_GET_IMETHOD(*olddata) == IPC_M_C ONNECT_ME) {227 } else if (IPC_GET_IMETHOD(*olddata) == IPC_M_CLONE_ESTABLISH) { 228 228 phone_t *phone = (phone_t *) IPC_GET_ARG5(*olddata); 229 229 … … 459 459 break; 460 460 } 461 case IPC_M_C ONNECT_ME:461 case IPC_M_CLONE_ESTABLISH: 462 462 IPC_SET_ARG5(call->data, (sysarg_t) phone); 463 463 break; -
kernel/generic/src/printf/printf_core.c
r3293a94 r7719958 284 284 /* Print leading spaces. */ 285 285 size_t strw = str_length(str); 286 if ( precision == 0)286 if ((precision == 0) || (precision > strw)) 287 287 precision = strw; 288 288 … … 332 332 /* Print leading spaces. */ 333 333 size_t strw = wstr_length(str); 334 if ( precision == 0)334 if ((precision == 0) || (precision > strw)) 335 335 precision = strw; 336 336 -
kernel/test/print/print1.c
r3293a94 r7719958 41 41 42 42 TPRINTF("Testing printf(\"%%8.10s\", \"text\"):\n"); 43 TPRINTF("Expected output: \" text\"\n");43 TPRINTF("Expected output: \" text\"\n"); 44 44 TPRINTF("Real output: \"%8.10s\"\n\n", "text"); 45 45 … … 48 48 TPRINTF("Real output: \"%8.10s\"\n\n", "very long text"); 49 49 50 TPRINTF("Testing printf(\"%%-*.*s\", 7, 7, \"text\"):\n"); 51 TPRINTF("Expected output: \"text \"\n"); 52 TPRINTF("Real output: \"%-*.*s\"\n\n", 7, 7, "text"); 53 50 54 return NULL; 51 55 }
Note:
See TracChangeset
for help on using the changeset viewer.
