Commit 18977909 authored by Jiri Slaby (SUSE)'s avatar Jiri Slaby (SUSE) Committed by Greg Kroah-Hartman
Browse files

tty: ttyprintk: convert to u8 and size_t



Switch character types to u8 and sizes to size_t. To conform to
characters/sizes in the rest of the tty layer.

Signed-off-by: default avatar"Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20231206073712.17776-26-jirislaby@kernel.org


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 14abfd0c
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ static struct ttyprintk_port tpk_port;

static int tpk_curr;

static char tpk_buffer[TPK_STR_SIZE + 4];
static u8 tpk_buffer[TPK_STR_SIZE + 4];

static void tpk_flush(void)
{
@@ -51,9 +51,9 @@ static void tpk_flush(void)
	}
}

static int tpk_printk(const u8 *buf, int count)
static int tpk_printk(const u8 *buf, size_t count)
{
	int i;
	size_t i;

	for (i = 0; i < count; i++) {
		if (tpk_curr >= TPK_STR_SIZE) {