From 29faf5bb06abcbf135b9d9cdc45fba679b6fbb3a Mon Sep 17 00:00:00 2001 From: Andriy Petrov Date: Thu, 25 Apr 2024 21:56:30 +0200 Subject: [PATCH] formatting --- sumo.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sumo.c b/sumo.c index e75a29a..884f752 100644 --- a/sumo.c +++ b/sumo.c @@ -107,15 +107,15 @@ ssize_t proc_pid_write(struct file *file, const char __user *buffer, *ppos = count; - ret = kstrtoull_from_user(buffer, count, 10, &pid); - if (ret) { - pr_err(MTAG "read PID failed %d\n", ret); - return count; - } + ret = kstrtoull_from_user(buffer, count, 10, &pid); + if (ret) { + pr_err(MTAG "read PID failed %d\n", ret); + return count; + } + + pr_info(MTAG "Got PID %llu\n", pid); + *ppos = count; - pr_info(MTAG "Got PID %llu\n", pid); - *ppos = count; - pid_struct = find_get_pid(pid); if (pid_struct == NULL) { pr_err(MTAG "find_get_pid() failed\n");