summaryrefslogtreecommitdiff
path: root/fw/src/firmware.c
blob: 9c0fa160211df370f7992a1fce663a31d8a62106 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * This Source Code Form is subject to the terms of the Mozilla Public License,
 * v. 2.0. If a copy of the MPL was not distributed with this file, You can
 * obtain one at https://mozilla.org/MPL/2.0/.
 */

#include <zephyr/app_version.h>
#include <zephyr/init.h>
#include <zephyr/logging/log.h>

LOG_MODULE_REGISTER(firmware);

int firmware_log_metadata(void)
{
	LOG_INF("App build version: %s", STRINGIFY(APP_BUILD_VERSION));

	return 0;
}
SYS_INIT(firmware_log_metadata, APPLICATION, 0);