/** The property value as per the data type above */
union {
bool v_bool; /**< For boolean */
- int v_int; /**< For signed integer */
- unsigned int v_uint; /**< For unsigned integer */
+ intptr_t v_int; /**< For signed integer */
+ uintptr_t v_uint; /**< For unsigned integer */
int64_t v_int64; /**< For 64-bit signed integer */
uint64_t v_uint64; /**< For 64-bit unsigned integer */
float v_float; /**< For float */
mtpr, prop_info->prop, prop_info->type, prop_info->name, prop_info->v_bool);
break;
case MTPR_CONNECTION_STATS_PROP_TYPE_INT:
- g_print(" => [STATS_CB] mtpr[%p], prop[%d], type[%d], %s:%d\n",
+ g_print(" => [STATS_CB] mtpr[%p], prop[%d], type[%d], %s: %" PRIdPTR "\n",
mtpr, prop_info->prop, prop_info->type, prop_info->name, prop_info->v_int);
break;
case MTPR_CONNECTION_STATS_PROP_TYPE_UINT:
- g_print(" => [STATS_CB] mtpr[%p], prop[%d], type[%d], %s:%u\n",
+ g_print(" => [STATS_CB] mtpr[%p], prop[%d], type[%d], %s:%" PRIuPTR "\n",
mtpr, prop_info->prop, prop_info->type, prop_info->name, prop_info->v_uint);
break;
case MTPR_CONNECTION_STATS_PROP_TYPE_INT64: