A couple of format string fixes for tracing printfs.

This commit is contained in:
Alex Smith
2012-07-20 17:37:37 +01:00
parent 1b41387b5f
commit d7ec2fa3bf
2 changed files with 3 additions and 3 deletions
@@ -1513,7 +1513,7 @@ device_node::_AddPath(Stack<KPath*>& stack, const char* basePath,
if (status == B_OK) if (status == B_OK)
status = stack.Push(path); status = stack.Push(path);
TRACE((" add path: \"%s\", %ld\n", path->Path(), status)); TRACE((" add path: \"%s\", %" B_PRId32 "\n", path->Path(), status));
if (status != B_OK) if (status != B_OK)
delete path; delete path;
+2 -2
View File
@@ -194,8 +194,8 @@ DiskBootMethod::IsBootDevice(KDiskDevice* device, bool strict)
return false; return false;
} }
TRACE(("boot device: bus %ld, device %ld\n", disk->bus_type, TRACE(("boot device: bus %" B_PRId32 ", device %" B_PRId32 "\n",
disk->device_type)); disk->bus_type, disk->device_type));
// Assume that CD boots only happen off removable media. // Assume that CD boots only happen off removable media.
if (fMethod == BOOT_METHOD_CD && !device->IsRemovable()) if (fMethod == BOOT_METHOD_CD && !device->IsRemovable())