Module: Mesa
Branch: main
Commit: c85df67f27b3e71f7f26b9fd3f7f2d9b8f27dde3
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c85df67f27b3e71f7f26b9fd3f7f2d9b8f27dde3

Author: Alyssa Rosenzweig <[email protected]>
Date:   Sat Jan 15 10:06:37 2022 -0500

pan/decode: Fix missing newlines in error messages

Otherwise these error message lines end up truncated, which is a bit
annoying.

Signed-off-by: Alyssa Rosenzweig <[email protected]>
Reported-by: Icecream95 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14575>

---

 src/panfrost/lib/genxml/decode.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/panfrost/lib/genxml/decode.c b/src/panfrost/lib/genxml/decode.c
index 001424107be..527812665aa 100644
--- a/src/panfrost/lib/genxml/decode.c
+++ b/src/panfrost/lib/genxml/decode.c
@@ -125,7 +125,7 @@ static void
 pandecode_validate_buffer(mali_ptr addr, size_t sz)
 {
         if (!addr) {
-                pandecode_msg("XXX: null pointer deref");
+                pandecode_msg("XXX: null pointer deref\n");
                 return;
         }
 
@@ -1424,7 +1424,7 @@ GENX(pandecode_abort_on_fault)(mali_ptr jc_gpu_va)
 
                 /* Ensure the job is marked COMPLETE */
                 if (h.exception_status != 0x1) {
-                        fprintf(stderr, "Incomplete job or timeout");
+                        fprintf(stderr, "Incomplete job or timeout\n");
                         abort();
                 }
         } while ((jc_gpu_va = next_job));

Reply via email to