case TABLE_SIZE:
case TABLE_INT64:
case TABLE_UINT64:
+ case TABLE_UINT64_HEX:
case TABLE_BPS:
return sizeof(uint64_t);
break;
case TABLE_UINT64:
+ case TABLE_UINT64_HEX:
buffer.uint64 = va_arg(ap, uint64_t);
data = &buffer.uint64;
break;
return CMP(a->uint32, b->uint32);
case TABLE_UINT64:
+ case TABLE_UINT64_HEX:
return CMP(a->uint64, b->uint64);
case TABLE_PERCENT:
break;
}
+ case TABLE_UINT64_HEX: {
+ _cleanup_free_ char *p;
+
+ p = new(char, 16 + 1);
+ if (!p)
+ return NULL;
+
+ sprintf(p, "%" PRIx64, d->uint64);
+ d->formatted = TAKE_PTR(p);
+ break;
+ }
+
case TABLE_PERCENT: {
_cleanup_free_ char *p = NULL;
return json_variant_new_unsigned(ret, d->uint32);
case TABLE_UINT64:
+ case TABLE_UINT64_HEX:
return json_variant_new_unsigned(ret, d->uint64);
case TABLE_PERCENT: