soc: apple: rtkit: Crop syslog messages
authorMartin Povišer <povik+lin@cutebit.org>
Fri, 24 Feb 2023 16:21:59 +0000 (17:21 +0100)
committerHector Martin <marcan@marcan.st>
Tue, 28 Mar 2023 10:59:34 +0000 (19:59 +0900)
commitbdfe6de2695c5bccc663a5a7d530f81925d8bc10
tree2536ff364f291199eced34a34f687f1ea9447cae
parent223444882d9bb30d2eaa9e221f2939f881dec4aa
soc: apple: rtkit: Crop syslog messages

Crop trailing whitespace, null, and newline characters in syslog
messages received from coprocessors. Notably DCP sends its messages
including a trailing newline, so prior to this change we would end up
cluttering the kernel log by repeated newlines at the end of messages.

Signed-off-by: Martin Povišer <povik+lin@cutebit.org>
Reviewed-by: Hector Martin <marcan@marcan.st>
Signed-off-by: Hector Martin <marcan@marcan.st>
drivers/soc/apple/rtkit.c