kernel: change some log levels

This commit is contained in:
K. Lange 2018-12-03 11:22:07 +09:00
parent f991448918
commit 131262bb1f
4 changed files with 10 additions and 6 deletions

View File

@ -166,6 +166,7 @@ void irq_handler(struct regs *r) {
goto done;
}
}
debug_print(ERROR, "acking irq %d - no other device handled it\n", r->int_no - 32);
irq_ack(r->int_no - 32);
}
done:

View File

@ -16,6 +16,7 @@
#include <kernel/shm.h>
#include <kernel/printf.h>
#include <kernel/module.h>
#include <kernel/args.h>
#include <sys/utsname.h>
#include <syscall_nums.h>
@ -260,11 +261,13 @@ static int sys_execve(const char * filename, char *const argv[], char *const env
PTR_VALIDATE(filename);
PTR_VALIDATE(envp);
debug_print(WARNING, "%d = exec(%s", current_process->id, filename);
for (char * const * arg = argv; *arg; ++arg) {
debug_print(WARNING, " %s", *arg);
if (args_present("traceexec")) {
debug_print(WARNING, "%d = exec(%s", current_process->id, filename);
for (char * const * arg = argv; *arg; ++arg) {
debug_print(WARNING, " %s", *arg);
}
debug_print(WARNING, " )");
}
debug_print(WARNING, " )");
int argc = 0;
int envc = 0;

View File

@ -529,7 +529,7 @@ static int gethost(char * name, uint32_t * ip) {
static int net_send_tcp(struct socket *socket, uint16_t flags, uint8_t * payload, uint32_t payload_size);
static void socket_close(fs_node_t * node) {
debug_print(ERROR, "Closing socket");
debug_print(WARNING, "Closing socket");
struct socket * sock = node->device;
if (sock->status == 1) return; /* already closed */
net_send_tcp(sock, TCP_FLAGS_ACK | TCP_FLAGS_FIN, NULL, 0);

View File

@ -770,7 +770,7 @@ static struct dirent * readdir_procfs_root(fs_node_t *node, uint32_t index) {
int i = index + 1;
debug_print(WARNING, "%d %d %d", i, index, PROCFS_STANDARD_ENTRIES);
debug_print(NOTICE, "%d %d %d", i, index, PROCFS_STANDARD_ENTRIES);
pid_t pid = 0;