From e8bae670d226061d567869d24fe3cbc175dff364 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Tue, 1 Nov 2011 21:23:16 +0000 Subject: [PATCH] Fix compilation for 32bit machines %Ld works for size_t only on 64 bit, the correct conversion is %zd --- gdbserver/gdb-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdbserver/gdb-server.c b/gdbserver/gdb-server.c index 3af0d8a..65297bc 100644 --- a/gdbserver/gdb-server.c +++ b/gdbserver/gdb-server.c @@ -143,7 +143,7 @@ int parse_options(int argc, char** argv, st_state_t *st) { break; case 'd': if (strlen(optarg) > sizeof (st->devicename)) { - fprintf(stderr, "device name too long: %ld\n", strlen(optarg)); + fprintf(stderr, "device name too long: %zd\n", strlen(optarg)); } else { strcpy(st->devicename, optarg); }