Release 4.15 arch/arm/kernel/early_printk.c
/*
* linux/arch/arm/kernel/early_printk.c
*
* Copyright (C) 2009 Sascha Hauer <s.hauer@pengutronix.de>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/kernel.h>
#include <linux/console.h>
#include <linux/init.h>
#include <linux/string.h>
extern void printascii(const char *);
static void early_write(const char *s, unsigned n)
{
char buf[128];
while (n) {
unsigned l = min(n, sizeof(buf)-1);
memcpy(buf, s, l);
buf[l] = 0;
s += l;
n -= l;
printascii(buf);
}
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Nico Pitre | 42 | 60.00% | 1 | 50.00% |
Catalin Marinas | 28 | 40.00% | 1 | 50.00% |
Total | 70 | 100.00% | 2 | 100.00% |
static void early_console_write(struct console *con, const char *s, unsigned n)
{
early_write(s, n);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Catalin Marinas | 26 | 100.00% | 1 | 100.00% |
Total | 26 | 100.00% | 1 | 100.00% |
static struct console early_console_dev = {
.name = "earlycon",
.write = early_console_write,
.flags = CON_PRINTBUFFER | CON_BOOT,
.index = -1,
};
static int __init setup_early_printk(char *buf)
{
early_console = &early_console_dev;
register_console(&early_console_dev);
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Catalin Marinas | 19 | 76.00% | 1 | 50.00% |
Thomas Gleixner | 6 | 24.00% | 1 | 50.00% |
Total | 25 | 100.00% | 2 | 100.00% |
early_param("earlyprintk", setup_early_printk);
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Catalin Marinas | 124 | 68.89% | 1 | 33.33% |
Nico Pitre | 49 | 27.22% | 1 | 33.33% |
Thomas Gleixner | 7 | 3.89% | 1 | 33.33% |
Total | 180 | 100.00% | 3 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.