pactl: SUBSCRIBE add a newline after every json message

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/748>
This commit is contained in:
acheronfail 2022-09-09 14:45:49 +09:30 committed by PulseAudio Marge Bot
parent 68a0603d76
commit 45df212d66

View file

@ -2200,7 +2200,7 @@ static void context_subscribe_callback(pa_context *c, pa_subscription_event_type
pa_json_encoder_end_object(encoder);
char* json_str = pa_json_encoder_to_string_free(encoder);
printf("%s", json_str);
printf("%s\n", json_str);
pa_xfree(json_str);
} else {
printf(_("Event '%s' on %s #%u\n"),