kernel: Fix format error
This commit is contained in:
@@ -102,8 +102,9 @@ struct my_dir_context {
|
|||||||
#define FILLDIR_ACTOR_STOP -EINVAL
|
#define FILLDIR_ACTOR_STOP -EINVAL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
FILLDIR_RETURN_TYPE my_actor(struct dir_context *ctx, const char *name, int namelen, loff_t off,
|
FILLDIR_RETURN_TYPE my_actor(struct dir_context *ctx, const char *name,
|
||||||
u64 ino, unsigned int d_type)
|
int namelen, loff_t off, u64 ino,
|
||||||
|
unsigned int d_type)
|
||||||
{
|
{
|
||||||
struct my_dir_context *my_ctx =
|
struct my_dir_context *my_ctx =
|
||||||
container_of(ctx, struct my_dir_context, ctx);
|
container_of(ctx, struct my_dir_context, ctx);
|
||||||
@@ -138,7 +139,7 @@ FILLDIR_RETURN_TYPE my_actor(struct dir_context *ctx, const char *name, int name
|
|||||||
.stop = my_ctx->stop };
|
.stop = my_ctx->stop };
|
||||||
file = ksu_filp_open_compat(dirpath, O_RDONLY, 0);
|
file = ksu_filp_open_compat(dirpath, O_RDONLY, 0);
|
||||||
if (IS_ERR(file)) {
|
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));
|
dirpath, PTR_ERR(file));
|
||||||
kfree(dirpath);
|
kfree(dirpath);
|
||||||
return FILLDIR_ACTOR_STOP;
|
return FILLDIR_ACTOR_STOP;
|
||||||
|
|||||||
Reference in New Issue
Block a user