Use %zx to convert a size_t value to its hex representation
_allocate_connections() should take a size_t parameter.
Use PRIu64 while scanning for range bytes