Пример #1
0
static int get_bootinfo(struct seq_file *m, void *v)
{
	int len = 0;

	EMIT_SERIAL();
	EMIT_HWREV();
	EMIT_POWERUPREASON();
	EMIT_MBM_VERSION();
	EMIT_BL_BUILD_SIG();
	EMIT_BOOTINFO("Last boot reason", "%s", bootreason);

	return len;
}
Пример #2
0
/*
 * get_bootinfo fills in the /proc/bootinfo information.
 * We currently only have the powerup reason.
 */
static int get_bootinfo(char *buf, char **start,
						off_t offset, int count,
						int *eof, void *data)
{
	int len = 0;

	EMIT_POWERUPREASON();
	EMIT_MBM_VERSION();
	EMIT_MBM_LOADER_VERSION();
	EMIT_FLAT_DEV_TREE_ADDRESS();
	EMIT_BATTERY_STATUS_AT_BOOT();
	EMIT_CID_RECOVER_BOOT();

	return len;
}