fix mmap compile error.
mmap/fs_rammap.c:81:39: error: expected ‘)’ before ‘PRIdOFF’ 81 | ferr("ERRORL Seek to position %"PRIdOFF" failed\n", fpos); | ^~~~~~~ mmap/fs_rammap.c:81:12: warning: spurious trailing ‘%’ in format [-Wformat=] 81 | ferr("ERRORL Seek to position %"PRIdOFF" failed\n", fpos); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ mmap/fs_rammap.c:81:37: note: format string is defined here 81 | ferr("ERRORL Seek to position %"PRIdOFF" failed\n", fpos); | ^ In file included from mmap/fs_rammap.c:30: mmap/fs_rammap.c:98:51: error: expected ‘)’ before ‘PRIdOFF’ 98 | ferr("ERROR: Write failed: offset=%"PRIdOFF" nwrite=%zd\n", | ^~~~~~~ mmap/fs_rammap.c:98:20: warning: spurious trailing ‘%’ in format [-Wformat=] 98 | ferr("ERROR: Write failed: offset=%"PRIdOFF" nwrite=%zd\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmap/fs_rammap.c:98:49: note: format string is defined here 98 | ferr("ERROR: Write failed: offset=%"PRIdOFF" nwrite=%zd\n", Signed-off-by: zhangshoukui <zhangshoukui@xiaomi.com>
This commit is contained in:
parent
250353240c
commit
3fb6b4c9ec
@ -29,6 +29,7 @@
|
||||
#include <assert.h>
|
||||
#include <debug.h>
|
||||
#include <errno.h>
|
||||
#include <inttypes.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user