fs/nfs/nfs_util.c: Fix syslog formats
The following nxstyle error is a false positive. https://github.com/apache/incubator-nuttx/issues/387 fs/nfs/nfs_util.c:70:39: error: C++ style comment
This commit is contained in:
parent
bed9c3b83d
commit
73dd8a1ba2
|
@ -26,6 +26,7 @@
|
|||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue