<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/127383>127383</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [clang-format 21.0.0] There should be a way to handle long strings with printk
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-format
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          andr2000
      </td>
    </tr>
</table>

<pre>
    Tested on/with:
1. clang-format 21.0.0git (https://github.com/llvm/llvm-project.git 82605285b8c6)
2. .clang-format used: https://github.com/andr2000/xen/blob/clang_cmnty_drivers_v001/xen/.clang-format
3. File in question: https://github.com/andr2000/xen/blob/clang_cmnty_drivers_v001/xen/drivers/acpi/tables.c

What I see:
```
@@ -629,12 +628,14 @@ acpi_parse_one_rmrr(struct acpi_dmar_header *header)
-           printk(XENLOG_ERR VTDPREFIX
- "Overlapping RMRRs [%"PRIx64",%"PRIx64"] and [%"PRIx64",%"PRIx64"]\n",
-                  rmrru->base_address, rmrru->end_address,
-                  base_addr, end_addr);
+ printk(XENLOG_ERR VTDPREFIX "Overlapping RMRRs [%" PRIx64
+ ",%" PRIx64 "] and [%" PRIx64
+ ",%" PRIx64 "]\n",
+ rmrru->base_address, rmrru->end_address, base_addr,
+ end_addr);
```
What is expected:
`printk format string left untouched
`

Linux and Xen both have in their coding style a requirement that the user visible
strings (e.g., printk() messages) should not be split so they can be searched
for more easily.

There is no way currently to set such a rule and define a list of functions
that should follow that, e.g. {printf|printk|some other function}.

</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJy0VU1v4zYQ_TX0ZRCBHlmyfNDBceJigW13YQRtbgZFjiy2NOklKSf-9wUl5cNtsN09VDBggjPzOO9xOCNC0AdLVLPilhV3M9HHzvlaWOWRcz5rnLrUDxQiKXCW4fZJx47la8bX8wykEfZw0zp_FBFwnvGMH3QEhlUX4ykkP9wy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