From ab6fb9a9c631b6afe3c0850c88885d4ef52c4901 Mon Sep 17 00:00:00 2001 From: Jeff Curless Date: Sat, 10 Jan 2026 18:52:00 -0500 Subject: [PATCH] Update code to emit a version number on start. --- battery/oneUpPower.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/battery/oneUpPower.c b/battery/oneUpPower.c index bd2fdca..ca18c22 100644 --- a/battery/oneUpPower.c +++ b/battery/oneUpPower.c @@ -24,6 +24,10 @@ #include #include + +#define VERSION_MAJOR 1 +#define VERSION_MINOR 0 + enum test_power_id { ONEUP_BATTERY, ONEUP_AC, @@ -536,7 +540,7 @@ static int __init oneup_power_init(void) int i; int ret; - PR_INFO( "Starting Power monitor..." ); + PR_INFO( "Starting Power monitor version %d.%d...",VERSION_MAJOR,VERSION_MINOR ); BUILD_BUG_ON(ONEUP_POWER_NUM != ARRAY_SIZE(power_supplies)); BUILD_BUG_ON(ONEUP_POWER_NUM != ARRAY_SIZE(power_configs));