diff options
| -rw-r--r-- | meta-networking/recipes-daemons/opensaf/opensaf/0001-Use-correct-printf-format-for-__fsblkcnt_t.patch | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/meta-networking/recipes-daemons/opensaf/opensaf/0001-Use-correct-printf-format-for-__fsblkcnt_t.patch b/meta-networking/recipes-daemons/opensaf/opensaf/0001-Use-correct-printf-format-for-__fsblkcnt_t.patch index 0e113f533f..d44ceb0d2e 100644 --- a/meta-networking/recipes-daemons/opensaf/opensaf/0001-Use-correct-printf-format-for-__fsblkcnt_t.patch +++ b/meta-networking/recipes-daemons/opensaf/opensaf/0001-Use-correct-printf-format-for-__fsblkcnt_t.patch | |||
| @@ -15,15 +15,13 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 15 | src/base/os_defs.c | 4 ++++ | 15 | src/base/os_defs.c | 4 ++++ |
| 16 | 1 file changed, 4 insertions(+) | 16 | 1 file changed, 4 insertions(+) |
| 17 | 17 | ||
| 18 | diff --git a/src/base/os_defs.c b/src/base/os_defs.c | ||
| 19 | index 83458c2..655c190 100644 | ||
| 20 | --- a/src/base/os_defs.c | 18 | --- a/src/base/os_defs.c |
| 21 | +++ b/src/base/os_defs.c | 19 | +++ b/src/base/os_defs.c |
| 22 | @@ -917,7 +917,11 @@ uint32_t ncs_os_posix_shm(NCS_OS_POSIX_SHM_REQ_INFO *req) | 20 | @@ -917,7 +917,11 @@ uint32_t ncs_os_posix_shm(NCS_OS_POSIX_S |
| 23 | ((statsvfs.f_bfree - 1) * statsvfs.f_frsize)) { | 21 | ((statsvfs.f_bfree - 1) * statsvfs.f_frsize)) { |
| 24 | syslog( | 22 | syslog( |
| 25 | LOG_ERR, | 23 | LOG_ERR, |
| 26 | +#if __TIMESIZE == 64 && __WORDSIZE == 32 | 24 | +#if _FILE_OFFSET_BITS == 64 && __WORDSIZE == 32 |
| 27 | + "Insufficient shared memory (%lld) to write the data of size: %" PRId64 | 25 | + "Insufficient shared memory (%lld) to write the data of size: %" PRId64 |
| 28 | +#else | 26 | +#else |
| 29 | "Insufficient shared memory (%ld) to write the data of size: %" PRId64 | 27 | "Insufficient shared memory (%ld) to write the data of size: %" PRId64 |
| @@ -31,6 +29,3 @@ index 83458c2..655c190 100644 | |||
| 31 | "\n", | 29 | "\n", |
| 32 | (statsvfs.f_bfree * statsvfs.f_frsize), | 30 | (statsvfs.f_bfree * statsvfs.f_frsize), |
| 33 | req->info.write.i_write_size); | 31 | req->info.write.i_write_size); |
| 34 | -- | ||
| 35 | 2.29.2 | ||
| 36 | |||
