Skip to content

Commit

Permalink
fs/nfs/nfs_util.c: Fix syslog formats
Browse files Browse the repository at this point in the history
The following nxstyle error is a false positive.
apache#387

fs/nfs/nfs_util.c:70:39: error: C++ style comment
  • Loading branch information
yamt committed Nov 25, 2020
1 parent 10516a0 commit bd844c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fs/nfs/nfs_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <sys/types.h>
#include <sys/time.h>

#include <inttypes.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
Expand Down Expand Up @@ -85,7 +86,7 @@ static inline int nfs_pathsegment(FAR const char **path, FAR char *buffer,
}
else if (nbytes >= NAME_MAX)
{
ferr("ERROR: File name segment is too long: %d\n", *path);
ferr("ERROR: File name segment is too long: %d\n", nbytes);
return -EFBIG;
}
else
Expand Down Expand Up @@ -236,7 +237,7 @@ int nfs_lookup(FAR struct nfsmount *nmp, FAR const char *filename,
value = fxdr_unsigned(uint32_t, value);
if (value > NFSX_V3FHMAX)
{
ferr("ERROR: Bad file handle length: %d\n", value);
ferr("ERROR: Bad file handle length: %" PRId32 "\n", value);
return -EIO;
}

Expand Down

0 comments on commit bd844c9

Please sign in to comment.