Skip to content

Commit 1f2959c

Browse files
committed
Add logging information and fix compiler warnings
Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
1 parent e914f48 commit 1f2959c

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

ota_pal.c

+8-3
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,18 @@
3434

3535

3636
#include "logging_levels.h"
37-
/* define LOG_LEVEL here if you want to modify the logging level from the default */
37+
/* Logging configuration for the OTA PAL library. */
38+
#ifndef LIBRARY_LOG_NAME
39+
#define LIBRARY_LOG_NAME "OTA_PAL"
40+
#endif
3841

39-
#define LOG_LEVEL LOG_INFO
42+
/* define LIBRARY_LOG_LEVEL here if you want to modify the logging level from the default */
43+
#define LIBRARY_LOG_LEVEL LOG_INFO
4044

4145
#include "logging_stack.h"
4246

4347
/* To provide appFirmwareVersion for OTA library. */
48+
#include "ota_config.h"
4449
#include "ota_appversion32.h"
4550

4651
/* OTA PAL Port include. */
@@ -382,7 +387,7 @@ static OtaPalStatus_t otaPal_CheckSignature( OtaFileContext_t * const pFileConte
382387
ucSigBuffer = &ucECDSARAWSignature;
383388
usSigLength = ECDSA_SHA256_RAW_SIGNATURE_LENGTH;
384389
#else
385-
ucSigBuffer = &pFileContext->pSignature->data;
390+
ucSigBuffer = (uint8_t *) &pFileContext->pSignature->data;
386391
usSigLength = pFileContext->pSignature->size;
387392
#endif /* defined( OTA_PAL_SIGNATURE_FORMAT ) && ( OTA_PAL_SIGNATURE_FORMAT == OTA_PAL_SIGNATURE_ASN1_DER ) */
388393

version/application_version.h

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#ifndef APPLICATION_VERSION_H_
2424
#define APPLICATION_VERSION_H_
2525

26+
#include "ota_config.h"
2627
#include "ota_appversion32.h"
2728
#include "psa/update.h"
2829

0 commit comments

Comments
 (0)