new_name, strlen(new_name))) {
XL_LOG(ctx, XL_LOG_ERROR, "failed to write new name `%s'"
" for domain %"PRIu32" previously named `%s'",
- domid, new_name, old_name);
+ new_name, domid, old_name);
goto x_fail;
}
if (errno != EAGAIN) {
XL_LOG(ctx, XL_LOG_ERROR, "failed to commit new name `%s'"
" for domain %"PRIu32" previously named `%s'",
- domid, new_name, old_name);
+ new_name, domid, old_name);
goto x_fail;
}
XL_LOG(ctx, XL_LOG_DEBUG, "need to retry rename transaction"
rc = libxl_domain_info(ctx, &info, domid);
if (rc) {
XL_LOG_ERRNO(ctx, XL_LOG_ERROR, "unable to find domain info"
- " for domain %l"PRIu32, domid);
+ " for domain %"PRIu32, domid);
return 0;
}
uuid_string = string_of_uuid(ctx, info.uuid);
#include <stddef.h>
#include <stdio.h>
#include <stdarg.h>
+#include <inttypes.h>
#include "libxl.h"
#include "libxl_internal.h"
{
char *s = xs_get_domain_path(ctx->xsh, domid);
if (!s) {
- XL_LOG_ERRNO(ctx, XL_LOG_ERROR, "failed to get dompath for %lu",
+ XL_LOG_ERRNO(ctx, XL_LOG_ERROR, "failed to get dompath for %" PRIu32,
domid);
return NULL;
}