|
AquilaOS documentation
How it works, and its code
|
#include <stdarg.h>Go to the source code of this file.
Macros | |
| #define | LOG_NONE 0 |
| #define | LOG_EMERG 1 |
| #define | LOG_ALERT 2 |
| #define | LOG_CRIT 3 |
| #define | LOG_ERR 4 |
| #define | LOG_WARNING 5 |
| #define | LOG_NOTICE 6 |
| #define | LOG_INFO 7 |
| #define | LOG_DEBUG 8 |
| #define | LOGGER_DEFINE(module, name, _level) |
| #define | LOGGER_DECLARE(name) |
Functions | |
| int | vprintk (const char *fmt, va_list args) |
| Writes a kernel message, with its arguments in a va_list. | |
| int | printk (const char *fmt,...) |
| Writes a kernel message, to the message buffer and the consoles. | |
| #define LOG_DEBUG 8 |
Definition at line 19 of file printk.h.
Referenced by ext2_inode_alloc(), ext2_inode_build(), ext2_inode_sync(), ext2_write(), sys_accept(), sys_access(), sys_bind(), sys_chdir(), sys_chmod(), sys_chown(), sys_clock_gettime(), sys_close(), sys_connect(), sys_execve(), sys_exit(), sys_faccessat(), sys_fchdir(), sys_fchmod(), sys_fchmodat(), sys_fchown(), sys_fchownat(), sys_fcntl(), sys_flock(), sys_fork(), sys_fstat(), sys_fstatat(), sys_ftruncate(), sys_getcwd(), sys_getgid(), sys_getpeername(), sys_getpgrp(), sys_getpid(), sys_getppid(), sys_getsockname(), sys_getsockopt(), sys_gettimeofday(), sys_getuid(), sys_ioctl(), sys_isatty(), sys_kill(), sys_lchown(), sys_link(), sys_linkat(), sys_listen(), sys_lseek(), sys_lstat(), sys_mkdir(), sys_mknod(), sys_mknodat(), sys_mmap(), sys_mount(), sys_munmap(), sys_nanosleep(), sys_open(), sys_openat(), sys_pipe(), sys_poll(), sys_read(), sys_readdir(), sys_readlinkat(), sys_reboot(), sys_recv(), sys_renameat(), sys_rmdir(), sys_sbrk(), sys_select(), sys_send(), sys_setgid(), sys_sethostname(), sys_setitimer(), sys_setpgid(), sys_setsid(), sys_setsockopt(), sys_setuid(), sys_shutdown(), sys_sigaction(), sys_sigmask(), sys_sigreturn(), sys_sigsuspend(), sys_socket(), sys_stat(), sys_symlinkat(), sys_sync(), sys_sysconf(), sys_thread_create(), sys_thread_exit(), sys_thread_join(), sys_times(), sys_umask(), sys_uname(), sys_unlink(), sys_unlinkat(), sys_utimensat(), sys_waitpid(), sys_write(), vfs_close(), vfs_finddir(), vfs_ioctl(), vfs_lookup(), vfs_read_io(), vfs_readdir(), vfs_stat(), vfs_trunc(), and vfs_write_io().
| #define LOG_INFO 7 |
Definition at line 18 of file printk.h.
Referenced by vfs_init(), and vfs_install().
| #define LOGGER_DECLARE | ( | name | ) |
Definition at line 42 of file printk.h.
Referenced by LOGGER_DECLARE().
| #define LOGGER_DEFINE | ( | module, | |
| name, | |||
| _level ) |
| int printk | ( | const char * | fmt, |
| ... ) |
Writes a kernel message, to the message buffer and the consoles.
| fmt | the format (see the top of this file for what it supports) |
Definition at line 249 of file printk.c.
References printk(), va_end, va_list, va_start, and vprintk().
Referenced by aarch64_bad(), aarch64_init(), abort(), acpi_tables(), apic_route(), arch_stack_trace(), ata_detect_drive(), ata_poll(), ata_probe(), buddy_set_unusable(), buddy_setup(), cpio_load(), dma_transfer(), dump(), e1000_probe(), enqueue(), ext2_load(), fbdev_vesa_prope(), fdt_boot(), i8042_init(), initramfs_archiver_register(), isr_dispatch(), kargs_parse(), kdev_blkdev_register(), kdev_chrdev_register(), kdev_init(), kernel_ctrlaltdel(), kernel_reboot(), kfree(), kmain(), kmsgdev_write(), kvmem_guardtest(), kvmem_selftest(), load_ramdisk(), mm_page_fault(), mm_setup(), modules_init(), netif_config(), netif_register(), pci_assign(), pci_host_set(), pio_read_sectors(), platform_init(), pmap_init(), printk(), proc_kill(), scan_device(), sync_dispatch(), syscall_dispatch(), time_resync(), timer_setup(), uart_8250_attach(), uart_register(), vfs_mount_root_dev(), vm_object_page(), vnode_pages_update(), vt_probe(), x86_acpi_poweroff(), x86_apic_setup(), x86_clock_init(), x86_clock_ticks(), x86_cmos_setup(), x86_cpu_init(), x86_dump_registers(), x86_hpet_init(), x86_lapic_timer_setup(), x86_pc_irq_init(), x86_pic_setup(), x86_pit_delay(), x86_pit_period_set(), x86_pit_setup(), and x86_smp_init().
| int vprintk | ( | const char * | fmt, |
| va_list | args ) |
Writes a kernel message, with its arguments in a va_list.
| fmt | the format (see the top of this file for what it supports) |
| args | the arguments |
Definition at line 164 of file printk.c.
References putb(), putc(), putlx(), puts(), putud(), putul(), putx(), va_arg, va_list, and vprintk().