minor type cast to fix output for platforms where socket is unsigned

This commit is contained in:
Riccardo Mottola 2020-06-09 12:48:01 +02:00
parent 6ab0e3465f
commit 94e10f0447

View file

@ -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;
}