diff --git a/core/notifier.c b/core/notifier.c index 8643c6f0d..6c8a4c0c8 100644 --- a/core/notifier.c +++ b/core/notifier.c @@ -189,10 +189,6 @@ static void process_notifier (RECOVERY_STATUS status, int event, int level, cons { (void)level; - /* Check just in case a process want to send an info outside */ - if (status != SUBPROCESS) - return; - switch (event) { case (CANCELUPDATE): status = FAILURE; diff --git a/corelib/progress_thread.c b/corelib/progress_thread.c index 535ed4c96..5cd3bb361 100644 --- a/corelib/progress_thread.c +++ b/corelib/progress_thread.c @@ -149,7 +149,7 @@ void swupdate_progress_info(RECOVERY_STATUS status, int cause, const char *info) { struct swupdate_progress *prbar = &progress; pthread_mutex_lock(&prbar->lock); - snprintf(prbar->msg.info, sizeof(prbar->msg.info), "{\"%d\": %s}", + snprintf(prbar->msg.info, sizeof(prbar->msg.info), "{\"%d\": \"%s\"}", cause, info); prbar->msg.infolen = strlen(prbar->msg.info); prbar->msg.status = status;