fota: Fix wrongly written "boot mode" to "upgrade type" 30/315330/2 accepted/tizen_unified_dev accepted/tizen/unified/20240731.160147 accepted/tizen/unified/dev/20240805.054500 accepted/tizen/unified/toolchain/20240812.133445 accepted/tizen/unified/x/20240801.044253 accepted/tizen/unified/x/asan/20240813.231928
authorSangYoun Kwak <sy.kwak@samsung.com>
Tue, 30 Jul 2024 07:48:51 +0000 (16:48 +0900)
committerSangYoun Kwak <sy.kwak@samsung.com>
Tue, 30 Jul 2024 10:12:55 +0000 (19:12 +0900)
commitdbec139b2f4dd764d6789dfedaf94019708d2ed1
treef2ffb02eb68ef09bfb83e968bba9f820a6379a17
parentcae598a9e9a3af3b0d4178e7ba7176c788038e36
fota: Fix wrongly written "boot mode" to "upgrade type"

The log message for the failure of calling
hal_device_board_get_upgrade_type() function should be about upgrade
type but "boot mode" is used. It should be fixed.

Comparing two string with strncmp, a string variable "upgrade_type" and
constant string "online", compare length should be provided as "sizeof(
upgrade_type)" but "sizeof(boot_mode)" is used.
Their buffer size(boot_mode and upgrade_type) are same so it was not
making any errors so far but it should be fixed.

Change-Id: I580d04d982b943325643aae885bf5c91dae8c0c5
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
update-manager/fota/fota-installer.c