Skip to content

Commit

Permalink
kernel: Fix format error
Browse files Browse the repository at this point in the history
  • Loading branch information
tiann committed Mar 23, 2024
1 parent e1f9900 commit b5cc931
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions kernel/uid_observer.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,9 @@ struct my_dir_context {
#define FILLDIR_ACTOR_STOP -EINVAL
#endif

FILLDIR_RETURN_TYPE my_actor(struct dir_context *ctx, const char *name, int namelen, loff_t off,
u64 ino, unsigned int d_type)
FILLDIR_RETURN_TYPE my_actor(struct dir_context *ctx, const char *name,
int namelen, loff_t off, u64 ino,
unsigned int d_type)
{
struct my_dir_context *my_ctx =
container_of(ctx, struct my_dir_context, ctx);
Expand Down Expand Up @@ -138,7 +139,7 @@ FILLDIR_RETURN_TYPE my_actor(struct dir_context *ctx, const char *name, int name
.stop = my_ctx->stop };
file = ksu_filp_open_compat(dirpath, O_RDONLY, 0);
if (IS_ERR(file)) {
pr_err("Failed to open directory: %s, err: %d\n",
pr_err("Failed to open directory: %s, err: %ld\n",
dirpath, PTR_ERR(file));
kfree(dirpath);
return FILLDIR_ACTOR_STOP;
Expand Down

0 comments on commit b5cc931

Please sign in to comment.