[Lldb-commits] [lldb] [lldb] Change more uses of AppendMessageWithFormat to AppendMessageWithFormatv (PR #184337)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 3 05:21:33 PST 2026


================
@@ -925,9 +924,9 @@ class CommandObjectPlatformGetPermissions : public CommandObjectParsed {
       Status error = platform_sp->GetFilePermissions(FileSpec(remote_file_path),
                                                      permissions);
       if (error.Success()) {
-        result.AppendMessageWithFormat(
-            "File permissions of %s (remote): 0o%04" PRIo32 "\n",
-            remote_file_path.c_str(), permissions);
+        result.AppendMessageWithFormatv(
+            "File permissions of {0} (remote): 0o{1}", remote_file_path,
+            llvm::format("%04o", permissions));
----------------
DavidSpickett wrote:

The octal one.

https://github.com/llvm/llvm-project/pull/184337


More information about the lldb-commits mailing list