Changeset 63e27ef in mainline for kernel/generic/src/console


Ignore:
Timestamp:
2017-06-19T21:47:42Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
deacc58d
Parents:
7354b5e
Message:

ASSERT → assert

Location:
kernel/generic/src/console
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/console/chardev.c

    r7354b5e r63e27ef  
    3333 */
    3434
     35#include <assert.h>
    3536#include <adt/list.h>
    3637#include <console/chardev.h>
     
    6667void indev_push_character(indev_t *indev, wchar_t ch)
    6768{
    68         ASSERT(indev);
     69        assert(indev);
    6970       
    7071        irq_spinlock_lock(&indev->lock, true);
  • kernel/generic/src/console/cmd.c

    r7354b5e r63e27ef  
    4141 */
    4242
     43#include <assert.h>
    4344#include <console/cmd.h>
    4445#include <console/console.h>
     
    5455#include <str.h>
    5556#include <macros.h>
    56 #include <debug.h>
    5757#include <cpu.h>
    5858#include <mm/tlb.h>
     
    917917int cmd_uptime(cmd_arg_t *argv)
    918918{
    919         ASSERT(uptime);
     919        assert(uptime);
    920920       
    921921        /* This doesn't have to be very accurate */
  • kernel/generic/src/console/console.c

    r7354b5e r63e27ef  
    3434 */
    3535
     36#include <assert.h>
    3637#include <console/console.h>
    3738#include <console/chardev.h>
     
    189190        void *faddr = (void *) KA2PA(kio);
    190191       
    191         ASSERT((uintptr_t) faddr % FRAME_SIZE == 0);
     192        assert((uintptr_t) faddr % FRAME_SIZE == 0);
    192193       
    193194        kio_parea.pbase = (uintptr_t) faddr;
  • kernel/generic/src/console/kconsole.c

    r7354b5e r63e27ef  
    3939 */
    4040
     41#include <assert.h>
    4142#include <console/kconsole.h>
    4243#include <console/console.h>
     
    633634    size_t *start, size_t *end)
    634635{
    635         ASSERT(start != NULL);
    636         ASSERT(end != NULL);
     636        assert(start != NULL);
     637        assert(end != NULL);
    637638       
    638639        bool found_start = false;
  • kernel/generic/src/console/prompt.c

    r7354b5e r63e27ef  
    3737 */
    3838
     39#include <assert.h>
    3940#include <console/prompt.h>
    4041
     
    4950bool console_prompt_display_all_hints(indev_t *indev, size_t hints)
    5051{
    51         ASSERT(indev);
    52         ASSERT(hints > 0);
     52        assert(indev);
     53        assert(hints > 0);
    5354       
    5455        printf("Display all %zu possibilities? (y or n) ", hints);
     
    8182bool console_prompt_more_hints(indev_t *indev, size_t *display_hints)
    8283{
    83         ASSERT(indev);
    84         ASSERT(display_hints != NULL);
     84        assert(indev);
     85        assert(display_hints != NULL);
    8586       
    8687        printf("--More--");
Note: See TracChangeset for help on using the changeset viewer.