From 94e10f0447df01b874a37debaf29e7d9197c0e8f Mon Sep 17 00:00:00 2001 From: Riccardo Mottola Date: Tue, 9 Jun 2020 12:48:01 +0200 Subject: [PATCH] minor type cast to fix output for platforms where socket is unsigned --- Tools/gdomap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Tools/gdomap.c b/Tools/gdomap.c index 585ec01c8..e25f7e524 100644 --- a/Tools/gdomap.c +++ b/Tools/gdomap.c @@ -511,8 +511,8 @@ delRInfo(int s) if (i == _rInfoCount) { snprintf(ebuf, sizeof(ebuf), - "%s requested unallocated RInfo struct (socket %d)", - __FUNCTION__, s); + "%s requested unallocated RInfo struct (socket %ld)", + __FUNCTION__, (long int)s); gdomap_log(LOG_ERR); return; } @@ -585,8 +585,8 @@ delWInfo(int s) if (i == _wInfoCount) { snprintf(ebuf, sizeof(ebuf), - "%s requested unallocated WInfo struct (socket %d)", - __FUNCTION__, s); + "%s requested unallocated WInfo struct (socket %ld)", + __FUNCTION__, (long int)s); gdomap_log(LOG_ERR); return; }