Changeset f019cc07 in mainline
- Timestamp:
- 2009-08-02T19:08:22Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5b3cf90
- Parents:
- a405563
- Location:
- uspace/app
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/init/init.c
ra405563 rf019cc07 203 203 } 204 204 205 void mount_data(void)205 static void mount_data(void) 206 206 { 207 207 int rc; … … 246 246 srv_start("/srv/ata_bd"); 247 247 srv_start("/srv/gxe_bd"); 248 #endif 248 #else 249 (void) srv_start; 250 #endif 251 249 252 #ifdef CONFIG_MOUNT_DATA 250 253 mount_data(); 254 #else 255 (void) mount_data; 251 256 #endif 252 257 -
uspace/app/trace/proto.c
ra405563 rf019cc07 47 47 48 48 typedef struct { 49 intsrv;49 unsigned srv; 50 50 proto_t *proto; 51 51 link_t link; -
uspace/app/trace/trace.c
ra405563 rf019cc07 207 207 void val_print(sysarg_t val, val_type_t v_type) 208 208 { 209 long sval; 210 211 sval = (long) val; 212 209 213 switch (v_type) { 210 214 case V_VOID: … … 213 217 214 218 case V_INTEGER: 215 printf("%ld", val);219 printf("%ld", sval); 216 220 break; 217 221 … … 222 226 223 227 case V_ERRNO: 224 if ( val >= -15 &&val <= 0) {225 printf("%ld %s (%s)", val,226 err_desc[- val].name,227 err_desc[- val].desc);228 if (sval >= -15 && sval <= 0) { 229 printf("%ld %s (%s)", sval, 230 err_desc[-sval].name, 231 err_desc[-sval].desc); 228 232 } else { 229 printf("%ld", val);233 printf("%ld", sval); 230 234 } 231 235 break; 232 236 case V_INT_ERRNO: 233 if ( val >= -15 &&val < 0) {234 printf("%ld %s (%s)", val,235 err_desc[- val].name,236 err_desc[- val].desc);237 if (sval >= -15 && sval < 0) { 238 printf("%ld %s (%s)", sval, 239 err_desc[-sval].name, 240 err_desc[-sval].desc); 237 241 } else { 238 printf("%ld", val);242 printf("%ld", sval); 239 243 } 240 244 break; 241 245 242 246 case V_CHAR: 243 if ( val >= 0x20 &&val < 0x7f) {244 printf("'%c'", val);247 if (sval >= 0x20 && sval < 0x7f) { 248 printf("'%c'", sval); 245 249 } else { 246 switch ( val) {250 switch (sval) { 247 251 case '\a': printf("'\\a'"); break; 248 252 case '\b': printf("'\\b'"); break; … … 283 287 ipcarg_t phoneid; 284 288 285 if (sc_rc == IPC_CALLRET_FATAL || sc_rc == IPC_CALLRET_TEMPORARY) 289 if (sc_rc == (sysarg_t) IPC_CALLRET_FATAL || 290 sc_rc == (sysarg_t) IPC_CALLRET_TEMPORARY) 286 291 return; 287 292 … … 303 308 int rc; 304 309 305 if (sc_rc == IPC_CALLRET_FATAL || sc_rc == IPC_CALLRET_TEMPORARY) 310 if (sc_rc == (sysarg_t) IPC_CALLRET_FATAL || 311 sc_rc == (sysarg_t) IPC_CALLRET_TEMPORARY) 306 312 return; 307 313 … … 344 350 static void sc_ipc_call_sync_slow_b(unsigned thread_id, sysarg_t *sc_args) 345 351 { 346 ipc_call_t question , reply;352 ipc_call_t question; 347 353 int rc; 348 354 349 355 memset(&question, 0, sizeof(question)); 350 rc = udebug_mem_read(phoneid, &question.args, sc_args[1], sizeof(question.args)); 356 rc = udebug_mem_read(phoneid, &question.args, sc_args[1], 357 sizeof(question.args)); 358 351 359 if (rc < 0) { 352 360 printf("Error: mem_read->%d\n", rc); … … 359 367 static void sc_ipc_call_sync_slow_e(unsigned thread_id, sysarg_t *sc_args) 360 368 { 361 ipc_call_t question,reply;369 ipc_call_t reply; 362 370 int rc; 363 371 364 372 memset(&reply, 0, sizeof(reply)); 365 rc = udebug_mem_read(phoneid, &reply.args, sc_args[2], sizeof(reply.args)); 373 rc = udebug_mem_read(phoneid, &reply.args, sc_args[2], 374 sizeof(reply.args)); 375 366 376 if (rc < 0) { 367 377 printf("Error: mem_read->%d\n", rc);
Note:
See TracChangeset
for help on using the changeset viewer.