Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix compilation for 32bit machines

%Ld works for size_t only on 64 bit, the correct conversion is %zd
  • Loading branch information...
commit e8bae670d226061d567869d24fe3cbc175dff364 1 parent ee77215
@karlp karlp authored Hakkavélin committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  gdbserver/gdb-server.c
View
2  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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.