diff mbox series

state: Remove superfluous \n in notifications

Message ID 20200420083715.39280-1-christian.storm@siemens.com
State Accepted
Headers show
Series state: Remove superfluous \n in notifications | expand

Commit Message

Christian Storm April 20, 2020, 8:37 a.m. UTC
Signed-off-by: Christian Storm <christian.storm@siemens.com>
---
 core/state.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Stefano Babic April 20, 2020, 9:27 a.m. UTC | #1
On 20.04.20 10:37, Christian Storm wrote:
> Signed-off-by: Christian Storm <christian.storm@siemens.com>
> ---
>  core/state.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/core/state.c b/core/state.c
> index 45e461b..245dfb8 100644
> --- a/core/state.c
> +++ b/core/state.c
> @@ -21,7 +21,7 @@
>  #define CHECK_STATE_VAR(v) do { \
>  	if (strnlen(v, BOOTLOADER_VAR_LENGTH) == 0) { \
>  		WARN("Update Status Storage Key " \
> -			"is empty, setting it to 'ustate'\n"); \
> +			"is empty, setting it to 'ustate'"); \
>  		v = (char *)"ustate"; \
>  	} \
>  } while(0)
> @@ -76,10 +76,10 @@ update_state_t get_state(void) {
>  	update_state_t state;
>  
>  	if (read_state((char *)STATE_KEY, &state) != SERVER_OK) {
> -		ERROR("Cannot read stored update state.\n");
> +		ERROR("Cannot read stored update state.");
>  		return STATE_ERROR;
>  	}
> -	TRACE("Read state=%c from persistent storage.\n", state);
> +	TRACE("Read state=%c from persistent storage.", state);
>  
>  	if (is_valid_state(state)) {
>  		return state;
> 
Acked-by : Stefano Babic <sbabic@denx.de>

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/core/state.c b/core/state.c
index 45e461b..245dfb8 100644
--- a/core/state.c
+++ b/core/state.c
@@ -21,7 +21,7 @@ 
 #define CHECK_STATE_VAR(v) do { \
 	if (strnlen(v, BOOTLOADER_VAR_LENGTH) == 0) { \
 		WARN("Update Status Storage Key " \
-			"is empty, setting it to 'ustate'\n"); \
+			"is empty, setting it to 'ustate'"); \
 		v = (char *)"ustate"; \
 	} \
 } while(0)
@@ -76,10 +76,10 @@  update_state_t get_state(void) {
 	update_state_t state;
 
 	if (read_state((char *)STATE_KEY, &state) != SERVER_OK) {
-		ERROR("Cannot read stored update state.\n");
+		ERROR("Cannot read stored update state.");
 		return STATE_ERROR;
 	}
-	TRACE("Read state=%c from persistent storage.\n", state);
+	TRACE("Read state=%c from persistent storage.", state);
 
 	if (is_valid_state(state)) {
 		return state;