kernel: Switch to using pr_info for printing

This commit is contained in:
ShirkNeko
2025-09-14 11:25:59 +08:00
parent c5a2e06b94
commit 4c3bdcd016

View File

@@ -171,7 +171,7 @@ FILLDIR_RETURN_TYPE collect_user_ids(struct dir_context *ctx, const char *name,
if (d_type != DT_DIR || namelen <= 0) if (d_type != DT_DIR || namelen <= 0)
return FILLDIR_ACTOR_CONTINUE; return FILLDIR_ACTOR_CONTINUE;
if (name[0] == '.' && (namelen == 1 || (namelen == 2 && name[1] == '.'))) if (name[0] == '.' && (namelen == 1 || (namelen == 2 && name[1] == '.')))
return FILLDIR_ACTOR_CONTINUE;; return FILLDIR_ACTOR_CONTINUE;
// Parse numeric user ID // Parse numeric user ID
uid_t uid = 0; uid_t uid = 0;
@@ -309,7 +309,7 @@ basically no mask and flags for =< 4.10
list_add_tail(&uid_entry->list, scan_ctx->uid_list); list_add_tail(&uid_entry->list, scan_ctx->uid_list);
scan_ctx->pkg_count++; scan_ctx->pkg_count++;
pr_info("Package: %s, UID: %u (user %u)\n", uid_entry->package, uid, scan_ctx->user_id); pr_info("User Package: %s, UID: %u (user %u)\n", uid_entry->package, uid, scan_ctx->user_id);
return FILLDIR_ACTOR_CONTINUE; return FILLDIR_ACTOR_CONTINUE;
} }