mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-01-30 23:02:18 +00:00
84ba5b15ac
* Enhance GPIO addon for Noctua Fans for the Qortector upcoming case. This will put PWM signal to real-time. * Fixed RDP not letting a user login if not logged out on Cinnamon release (reported by Crowetic) * Update i2c sensor db * Fixed DRM broadcast over HDMI 2+ * Ease up DHCP security only to prevent Brooklyn blocking routers. * Add possibility to add extra memory for Cinnamon Desktop Release * Fix error message of Software Render mode on Cinnamon Desktop * Add proper offset for HD screens for pixel array *Fixed HDMI jitter for videocore4 GPU * Enable all radios (including Bluetooth)
43 lines
692 B
C
43 lines
692 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* arch/alpha/lib/srm_printk.c
|
|
*/
|
|
|
|
#include <linux/kernel.h>
|
|
#include <asm/console.h>
|
|
|
|
long
|
|
srm_printk(const char *fmt, ...)
|
|
{
|
|
static char buf[1024];
|
|
va_list args;
|
|
long len, num_lf;
|
|
char *src, *dst;
|
|
|
|
va_start(args, fmt);
|
|
len = vsprintf(buf, fmt, args);
|
|
va_end(args);
|
|
|
|
/* count number of linefeeds in string: */
|
|
|
|
num_lf = 0;
|
|
for (src = buf; *src; ++src) {
|
|
if (*src == '\n') {
|
|
++num_lf;
|
|
}
|
|
}
|
|
|
|
if (num_lf) {
|
|
/* expand each linefeed into carriage-return/linefeed: */
|
|
for (dst = src + num_lf; src >= buf; ) {
|
|
if (*src == '\n') {
|
|
*dst-- = '\r';
|
|
}
|
|
*dst-- = *src--;
|
|
}
|
|
}
|
|
|
|
srm_puts(buf, num_lf+len);
|
|
return len;
|
|
}
|