formatting
This commit is contained in:
parent
b61bf36c55
commit
29faf5bb06
16
sumo.c
16
sumo.c
@ -107,15 +107,15 @@ ssize_t proc_pid_write(struct file *file, const char __user *buffer,
|
|||||||
|
|
||||||
*ppos = count;
|
*ppos = count;
|
||||||
|
|
||||||
ret = kstrtoull_from_user(buffer, count, 10, &pid);
|
ret = kstrtoull_from_user(buffer, count, 10, &pid);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
pr_err(MTAG "read PID failed %d\n", ret);
|
pr_err(MTAG "read PID failed %d\n", ret);
|
||||||
return count;
|
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);
|
pid_struct = find_get_pid(pid);
|
||||||
if (pid_struct == NULL) {
|
if (pid_struct == NULL) {
|
||||||
pr_err(MTAG "find_get_pid() failed\n");
|
pr_err(MTAG "find_get_pid() failed\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user