X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fst-info.c;fp=src%2Fst-info.c;h=28f3fb823572266350970cdd321f259caef2f055;hb=75be8af5477810871bdc2d03dff1f00d33309b11;hp=e28a4f12cf9d16952c98b440627d1252d4aa6708;hpb=11891439f0b2a5e117de03169e334997f898c4fc;p=fw%2Fstlink diff --git a/src/st-info.c b/src/st-info.c index e28a4f1..28f3fb8 100644 --- a/src/st-info.c +++ b/src/st-info.c @@ -22,11 +22,11 @@ static int print_data(stlink_t* sl, char** av) { int ret = 0; if (strcmp(av[1], "--flash") == 0) - printf("0x%lx\n", sl->flash_size); + printf("0x%zx\n", sl->flash_size); else if (strcmp(av[1], "--sram") == 0) - printf("0x%lx\n", sl->sram_size); + printf("0x%zx\n", sl->sram_size); else if (strcmp(av[1], "--pagesize") == 0) - printf("0x%lx\n", sl->flash_pgsz); + printf("0x%zx\n", sl->flash_pgsz); else if (strcmp(av[1], "--chipid") == 0) printf("0x%.4x\n", sl->chip_id); else if (strcmp(av[1], "--descr")==0) {