> + vments = libxl_sprintf(ctx, "%lu.%d",
> + vments[i++] = libxl_sprintf(ctx,
I don't think these work as intended. For example, if
tv_usec is 10000, I think you want xxx.01 printed, not
xxx.1. Maybe you want %lu.%02d?
And in any case, is there a reason to limit the precision
to two digits? Why not %lu.%06d?
Xen-devel mailing list