Skip to content

Commit

Permalink
Fix format specifier in apc_shm.c
Browse files Browse the repository at this point in the history
Fixes #500.
  • Loading branch information
nikic committed Dec 9, 2023
1 parent 02b0ba7 commit 0797ccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apc_shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ int apc_shm_create(int proj, size_t size)

oflag = IPC_CREAT | SHM_R | SHM_A;
if ((shmid = shmget(key, size, oflag)) < 0) {
zend_error_noreturn(E_CORE_ERROR, "apc_shm_create: shmget(%d, %zd, %d) failed: %s. It is possible that the chosen SHM segment size is higher than the operation system allows. Linux has usually a default limit of 32MB per segment.", key, size, oflag, strerror(errno));
zend_error_noreturn(E_CORE_ERROR, "apc_shm_create: shmget(%ld, %zd, %d) failed: %s. It is possible that the chosen SHM segment size is higher than the operation system allows. Linux has usually a default limit of 32MB per segment.", (long) key, size, oflag, strerror(errno));
}

return shmid;
Expand Down

0 comments on commit 0797ccc

Please sign in to comment.