blob: 2bcd8dbc64f3ee80a6dde0167ad289b58a85b51f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/* SPDX-License-Identifier: GPL-2.0-only */
#include <boardid.h>
#include <smbios.h>
#include <stdio.h>
#include <string.h>
const char *smbios_mainboard_version(void)
{
static char str[8];
snprintf(str, sizeof(str), "rev%d", board_id());
return str;
}
|