Changes in kernel/generic/src/console/kconsole.c [d99c1d2:4ce914d4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/kconsole.c
rd99c1d2 r4ce914d4 455 455 printf("No symbol information available.\n"); 456 456 return false; 457 } 458 459 if (isaddr) 460 *result = (unative_t) symaddr; 461 else if (isptr) 462 *result = **((unative_t **) symaddr); 463 else 464 *result = *((unative_t *) symaddr); 457 case EOK: 458 if (isaddr) 459 *result = (unative_t) symaddr; 460 else if (isptr) 461 *result = **((unative_t **) symaddr); 462 else 463 *result = *((unative_t *) symaddr); 464 break; 465 default: 466 printf("Unknown error.\n"); 467 return false; 468 } 465 469 } else { 466 470 /* It's a number - convert it */ 467 *result = atoi(text); 468 if (isptr) 469 *result = *((unative_t *) *result); 471 uint64_t value; 472 int rc = str_uint64(text, NULL, 0, true, &value); 473 switch (rc) { 474 case EINVAL: 475 printf("Invalid number.\n"); 476 return false; 477 case EOVERFLOW: 478 printf("Integer overflow.\n"); 479 return false; 480 case EOK: 481 *result = (unative_t) value; 482 if (isptr) 483 *result = *((unative_t *) *result); 484 break; 485 default: 486 printf("Unknown error.\n"); 487 return false; 488 } 470 489 } 471 490
Note:
See TracChangeset
for help on using the changeset viewer.