These aren't real issues as all the types in question are 32-bit ints,
but fixing these will prevent warnings later if we're ever able to
enable __attribute__((format)) on Windows (hopefully due to
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64862 being fixed).
if (unlikely(!NT_SUCCESS(status))) {
winnt_error(status, L"Can't open \"%ls\" for deletion "
"(perms=%x, flags=%x)",
if (unlikely(!NT_SUCCESS(status))) {
winnt_error(status, L"Can't open \"%ls\" for deletion "
"(perms=%x, flags=%x)",
- current_path(ctx), perms, flags);
+ current_path(ctx), (u32)perms, (u32)flags);
return WIMLIB_ERR_OPEN;
}
return WIMLIB_ERR_OPEN;
}
res = vss->vtable->InitializeForBackup(vss, NULL);
if (FAILED(res)) {
res = vss->vtable->InitializeForBackup(vss, NULL);
if (FAILED(res)) {
- ERROR("IVssBackupComponents.InitializeForBackup() error: %x", res);
+ ERROR("IVssBackupComponents.InitializeForBackup() error: %x",
+ (u32)res);
return false;
}
res = vss->vtable->SetBackupState(vss, FALSE, TRUE, VSS_BT_COPY, FALSE);
if (FAILED(res)) {
return false;
}
res = vss->vtable->SetBackupState(vss, FALSE, TRUE, VSS_BT_COPY, FALSE);
if (FAILED(res)) {
- ERROR("IVssBackupComponents.SetBackupState() error: %x", res);
+ ERROR("IVssBackupComponents.SetBackupState() error: %x",
+ (u32)res);
return false;
}
res = vss->vtable->StartSnapshotSet(vss, snapshot_id);
if (FAILED(res)) {
return false;
}
res = vss->vtable->StartSnapshotSet(vss, snapshot_id);
if (FAILED(res)) {
- ERROR("IVssBackupComponents.StartSnapshotSet() error: %x", res);
+ ERROR("IVssBackupComponents.StartSnapshotSet() error: %x",
+ (u32)res);
return false;
}
res = vss->vtable->AddToSnapshotSet(vss, volume, (GUID){}, snapshot_id);
if (FAILED(res)) {
return false;
}
res = vss->vtable->AddToSnapshotSet(vss, volume, (GUID){}, snapshot_id);
if (FAILED(res)) {
- ERROR("IVssBackupComponents.AddToSnapshotSet() error: %x", res);
+ ERROR("IVssBackupComponents.AddToSnapshotSet() error: %x",
+ (u32)res);
return false;
}
res = vss->vtable->PrepareForBackup(vss, &async);
if (FAILED(res)) {
return false;
}
res = vss->vtable->PrepareForBackup(vss, &async);
if (FAILED(res)) {
- ERROR("IVssBackupComponents.PrepareForBackup() error: %x", res);
+ ERROR("IVssBackupComponents.PrepareForBackup() error: %x",
+ (u32)res);
return false;
}
res = wait_and_release(async);
if (FAILED(res)) {
return false;
}
res = wait_and_release(async);
if (FAILED(res)) {
- ERROR("IVssAsync.Wait() error while preparing for backup: %x", res);
+ ERROR("IVssAsync.Wait() error while preparing for backup: %x",
+ (u32)res);
return false;
}
res = vss->vtable->DoSnapshotSet(vss, &async);
if (FAILED(res)) {
return false;
}
res = vss->vtable->DoSnapshotSet(vss, &async);
if (FAILED(res)) {
- ERROR("IVssBackupComponents.DoSnapshotSet() error: %x", res);
+ ERROR("IVssBackupComponents.DoSnapshotSet() error: %x",
+ (u32)res);
return false;
}
res = wait_and_release(async);
if (FAILED(res)) {
return false;
}
res = wait_and_release(async);
if (FAILED(res)) {
- ERROR("IVssAsync.Wait() error while doing snapshot set: %x", res);
+ ERROR("IVssAsync.Wait() error while doing snapshot set: %x",
+ (u32)res);
res = (*func_CreateVssBackupComponentsInternal)(&vss);
if (FAILED(res)) {
res = (*func_CreateVssBackupComponentsInternal)(&vss);
if (FAILED(res)) {
- ERROR("CreateVssBackupComponents error: %x", res);
+ ERROR("CreateVssBackupComponents error: %x", (u32)res);
res = vss->vtable->GetSnapshotProperties(vss, snapshot_id, &snapshot->props);
if (FAILED(res)) {
res = vss->vtable->GetSnapshotProperties(vss, snapshot_id, &snapshot->props);
if (FAILED(res)) {
- ERROR("IVssBackupComponents.GetSnapshotProperties() error: %x", res);
+ ERROR("IVssBackupComponents.GetSnapshotProperties() error: %x",
+ (u32)res);