Changeset 63e27ef in mainline for kernel/generic/src/console
- Timestamp:
- 2017-06-19T21:47:42Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- deacc58d
- Parents:
- 7354b5e
- Location:
- kernel/generic/src/console
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/chardev.c
r7354b5e r63e27ef 33 33 */ 34 34 35 #include <assert.h> 35 36 #include <adt/list.h> 36 37 #include <console/chardev.h> … … 66 67 void indev_push_character(indev_t *indev, wchar_t ch) 67 68 { 68 ASSERT(indev);69 assert(indev); 69 70 70 71 irq_spinlock_lock(&indev->lock, true); -
kernel/generic/src/console/cmd.c
r7354b5e r63e27ef 41 41 */ 42 42 43 #include <assert.h> 43 44 #include <console/cmd.h> 44 45 #include <console/console.h> … … 54 55 #include <str.h> 55 56 #include <macros.h> 56 #include <debug.h>57 57 #include <cpu.h> 58 58 #include <mm/tlb.h> … … 917 917 int cmd_uptime(cmd_arg_t *argv) 918 918 { 919 ASSERT(uptime);919 assert(uptime); 920 920 921 921 /* This doesn't have to be very accurate */ -
kernel/generic/src/console/console.c
r7354b5e r63e27ef 34 34 */ 35 35 36 #include <assert.h> 36 37 #include <console/console.h> 37 38 #include <console/chardev.h> … … 189 190 void *faddr = (void *) KA2PA(kio); 190 191 191 ASSERT((uintptr_t) faddr % FRAME_SIZE == 0);192 assert((uintptr_t) faddr % FRAME_SIZE == 0); 192 193 193 194 kio_parea.pbase = (uintptr_t) faddr; -
kernel/generic/src/console/kconsole.c
r7354b5e r63e27ef 39 39 */ 40 40 41 #include <assert.h> 41 42 #include <console/kconsole.h> 42 43 #include <console/console.h> … … 633 634 size_t *start, size_t *end) 634 635 { 635 ASSERT(start != NULL);636 ASSERT(end != NULL);636 assert(start != NULL); 637 assert(end != NULL); 637 638 638 639 bool found_start = false; -
kernel/generic/src/console/prompt.c
r7354b5e r63e27ef 37 37 */ 38 38 39 #include <assert.h> 39 40 #include <console/prompt.h> 40 41 … … 49 50 bool console_prompt_display_all_hints(indev_t *indev, size_t hints) 50 51 { 51 ASSERT(indev);52 ASSERT(hints > 0);52 assert(indev); 53 assert(hints > 0); 53 54 54 55 printf("Display all %zu possibilities? (y or n) ", hints); … … 81 82 bool console_prompt_more_hints(indev_t *indev, size_t *display_hints) 82 83 { 83 ASSERT(indev);84 ASSERT(display_hints != NULL);84 assert(indev); 85 assert(display_hints != NULL); 85 86 86 87 printf("--More--");
Note:
See TracChangeset
for help on using the changeset viewer.