[PATCH] D114469: [XRay] fix more -Wformat warnings

Dimitry Andric via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 23 13:02:17 PST 2021


dim updated this revision to Diff 389292.
dim added a comment.

Drop trailing dots from report messages.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D114469/new/

https://reviews.llvm.org/D114469

Files:
  compiler-rt/lib/xray/xray_allocator.h


Index: compiler-rt/lib/xray/xray_allocator.h
===================================================================
--- compiler-rt/lib/xray/xray_allocator.h
+++ compiler-rt/lib/xray/xray_allocator.h
@@ -66,7 +66,7 @@
   if (UNLIKELY(internal_iserror(B, &ErrNo))) {
     if (Verbosity())
       Report("XRay Profiling: Failed to allocate memory of size %zu; Error = "
-             "%zu.\n",
+             "%zu\n",
              RoundedSize, B);
     return nullptr;
   }
@@ -115,7 +115,7 @@
   if (UNLIKELY(internal_iserror(B, &ErrNo))) {
     if (Verbosity())
       Report("XRay Profiling: Failed to allocate memory of size %zu; Error = "
-             "%zu.\n",
+             "%zu\n",
              RoundedSize, B);
     return nullptr;
   }
@@ -183,7 +183,7 @@
       BackingStore = allocateBuffer(MaxMemory);
       if (BackingStore == nullptr) {
         if (Verbosity())
-          Report("XRay Profiling: Failed to allocate memory for allocator.\n");
+          Report("XRay Profiling: Failed to allocate memory for allocator\n");
         return nullptr;
       }
 
@@ -198,7 +198,7 @@
         AlignedNextBlock = BackingStore = nullptr;
         if (Verbosity())
           Report("XRay Profiling: Cannot obtain enough memory from "
-                 "preallocated region.\n");
+                 "preallocated region\n");
         return nullptr;
       }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114469.389292.patch
Type: text/x-patch
Size: 1366 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211123/55a82e72/attachment.bin>


More information about the llvm-commits mailing list