Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/i915 i915: Fix missing newlin...



details:   https://anonhg.NetBSD.org/src/rev/1436140b28a6
branches:  trunk
changeset: 366452:1436140b28a6
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Fri May 27 21:02:27 2022 +0000

description:
i915: Fix missing newlines in custom warning message macros.

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/i915_utils.h |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (26 lines):

diff -r e488404bf9da -r 1436140b28a6 sys/external/bsd/drm2/dist/drm/i915/i915_utils.h
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_utils.h  Fri May 27 20:48:42 2022 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_utils.h  Fri May 27 21:02:27 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i915_utils.h,v 1.5 2021/12/19 11:49:11 riastradh Exp $ */
+/*     $NetBSD: i915_utils.h,v 1.6 2022/05/27 21:02:27 riastradh Exp $ */
 
 /*
  * Copyright © 2016 Intel Corporation
@@ -44,13 +44,13 @@
        bool __i915_warn_cond = (x); \
        if (__builtin_constant_p(__i915_warn_cond)) \
                BUILD_BUG_ON(__i915_warn_cond); \
-       WARN(__i915_warn_cond, "WARN_ON(" #x ")"); })
+       WARN(__i915_warn_cond, "WARN_ON(" #x ")\n"); })
 #else
-#define WARN_ON(x) WARN((x), "%s", "WARN_ON(" __stringify(x) ")")
+#define WARN_ON(x) WARN((x), "%s\n", "WARN_ON(" __stringify(x) ")")
 #endif
 
 #undef WARN_ON_ONCE
-#define WARN_ON_ONCE(x) WARN_ONCE((x), "%s", "WARN_ON_ONCE(" __stringify(x) ")")
+#define WARN_ON_ONCE(x) WARN_ONCE((x), "%s", "WARN_ON_ONCE(" __stringify(x) ")\n")
 
 #define MISSING_CASE(x) WARN(1, "Missing case (%s == %ld)\n", \
                             __stringify(x), (long)(x))



Home | Main Index | Thread Index | Old Index