Changeset 690ad20 in mainline for kernel/generic/src/log/log.c


Ignore:
Timestamp:
2025-04-17T15:29:16Z (5 days ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master
Children:
39e1b9a
Parents:
d5b37b6
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2025-04-11 20:06:16)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2025-04-17 15:29:16)
Message:

Convert kio buffer to bytes (part 1)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/log/log.c

    rd5b37b6 r690ad20  
    4646#include <print.h>
    4747#include <printf_core.h>
    48 #include <putchar.h>
    4948#include <stdarg.h>
    5049#include <stdlib.h>
     
    179178        log_used += log_current_len;
    180179
    181         kio_push_char('\n');
     180        kio_push_bytes("\n", 1);
    182181        irq_spinlock_unlock(&kio_lock, true);
    183182        irq_spinlock_unlock(&log_lock, true);
     
    203202static int log_printf_str_write(const char *str, size_t size, void *data)
    204203{
    205         size_t offset = 0;
    206 
    207         while (offset < size)
    208                 kio_push_char(str_decode(str, &offset, size));
    209 
     204        kio_push_bytes(str, size);
    210205        log_append((const uint8_t *)str, size);
    211 
    212206        return EOK;
    213207}
Note: See TracChangeset for help on using the changeset viewer.