From 0f695f074ff3c6dc7bb44930b7dee5f27975caa0 Mon Sep 17 00:00:00 2001 From: Alcaro Date: Mon, 27 Nov 2017 17:07:31 +0100 Subject: [PATCH] #5802 aren't most of the memdesc fields size_t aka uintptr_t rather than uint64_t? whatever, good enough --- network/httpserver/httpserver.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/network/httpserver/httpserver.c b/network/httpserver/httpserver.c index 050604d0e6..17fe48f427 100644 --- a/network/httpserver/httpserver.c +++ b/network/httpserver/httpserver.c @@ -247,10 +247,10 @@ static int httpserver_handle_basic_info(struct mg_connection* conn, void* cbdata "\"frontendSupportsAchievements\":false," "\"coreSupportsAchievements\":null," #endif - "\"saveRam\":{\"pointer\":\"%" PRIXPTR "\",\"size\":" STRING_REP_UINT64 "}," - "\"rtcRam\":{\"pointer\":\"%" PRIXPTR "\",\"size\":" STRING_REP_UINT64 "}," - "\"systemRam\":{\"pointer\":\"%" PRIXPTR "\",\"size\":" STRING_REP_UINT64 "}," - "\"videoRam\":{\"pointer\":\"%" PRIXPTR "\",\"size\":" STRING_REP_UINT64 "},", + "\"saveRam\":{\"pointer\":\"%" PRIXPTR "\",\"size\":" PRIu64 "}," + "\"rtcRam\":{\"pointer\":\"%" PRIXPTR "\",\"size\":" PRIu64 "}," + "\"systemRam\":{\"pointer\":\"%" PRIXPTR "\",\"size\":" PRIu64 "}," + "\"videoRam\":{\"pointer\":\"%" PRIXPTR "\",\"size\":" PRIu64 "},", core_path, api.version, system->info.library_name, @@ -428,13 +428,13 @@ static int httpserver_handle_get_mmaps(struct mg_connection* conn, void* cbdata) mg_printf(conn, "%s{" "\"id\":%u," - "\"flags\":" STRING_REP_UINT64 "," + "\"flags\":" PRIu64 "," "\"ptr\":\"%" PRIXPTR "\"," - "\"offset\":" STRING_REP_UINT64 "," - "\"start\":" STRING_REP_UINT64 "," - "\"select\":" STRING_REP_UINT64 "," - "\"disconnect\":" STRING_REP_UINT64 "," - "\"len\":" STRING_REP_UINT64 "," + "\"offset\":" PRIu64 "," + "\"start\":" PRIu64 "," + "\"select\":" PRIu64 "," + "\"disconnect\":" PRIu64 "," + "\"len\":" PRIu64 "," "\"addrspace\":\"%s\"" "}", comma,