Skip to content

Instantly share code, notes, and snippets.

@bagder
Created June 5, 2020 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bagder/87199803bc18ab2c30598df23c9058b5 to your computer and use it in GitHub Desktop.
Save bagder/87199803bc18ab2c30598df23c9058b5 to your computer and use it in GitHub Desktop.
patch to fix armv7 test server crash
diff --git a/tests/server/util.c b/tests/server/util.c
index 75f3cb1b6..414d7194f 100644
--- a/tests/server/util.c
+++ b/tests/server/util.c
@@ -288,11 +288,11 @@ int write_pidfile(const char *filename)
*/
pid += 65536;
#endif
fprintf(pidfile, "%" CURL_FORMAT_CURL_OFF_T "\n", pid);
fclose(pidfile);
- logmsg("Wrote pid %ld to %s", pid, filename);
+ logmsg("Wrote pid % " CURL_FORMAT_CURL_OFF_T " to %s", pid, filename);
return 1; /* success */
}
/* store the used port number in a file */
int write_portfile(const char *filename, int port)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment