2022-07-04 02:55:57

by Li zeming

[permalink] [raw]
Subject: [PATCH] afs/_enter: Fix typo in string

Remove the repeated ',' from string

Signed-off-by: Li zeming <[email protected]>
---
fs/afs/dir.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/afs/dir.c b/fs/afs/dir.c
index 56ae5cd5184f..0628e843949f 100644
--- a/fs/afs/dir.c
+++ b/fs/afs/dir.c
@@ -574,7 +574,7 @@ static int afs_lookup_one_filldir(struct dir_context *ctx, const char *name,
struct afs_lookup_one_cookie *cookie =
container_of(ctx, struct afs_lookup_one_cookie, ctx);

- _enter("{%s,%u},%s,%u,,%llu,%u",
+ _enter("{%s,%u},%s,%u,%llu,%u",
cookie->name.name, cookie->name.len, name, nlen,
(unsigned long long) ino, dtype);

@@ -643,7 +643,7 @@ static int afs_lookup_filldir(struct dir_context *ctx, const char *name,
container_of(ctx, struct afs_lookup_cookie, ctx);
int ret;

- _enter("{%s,%u},%s,%u,,%llu,%u",
+ _enter("{%s,%u},%s,%u,%llu,%u",
cookie->name.name, cookie->name.len, name, nlen,
(unsigned long long) ino, dtype);

--
2.18.2


2022-07-05 14:06:09

by David Howells

[permalink] [raw]
Subject: Re: [PATCH] afs/_enter: Fix typo in string

Li zeming <[email protected]> wrote:

> - _enter("{%s,%u},%s,%u,,%llu,%u",
> + _enter("{%s,%u},%s,%u,%llu,%u",

It's not a typo. The fpos argument isn't printed.

> - _enter("{%s,%u},%s,%u,,%llu,%u",
> + _enter("{%s,%u},%s,%u,%llu,%u",

Ditto.

David