summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoracheronfail <acheronfail@gmail.com>2022-09-09 14:45:49 +0930
committerPulseAudio Marge Bot <pulseaudio-maintainers@lists.freedesktop.org>2022-09-27 08:58:50 +0000
commit45df212d6614ad7f57d9e53616c0faac00195c86 (patch)
tree1d78dfbe6bb4bd771e01e88a7c79be10d1ecf455
parent68a0603d7688e7908d7178ea749428ab2c453a35 (diff)
downloadpulseaudio-45df212d6614ad7f57d9e53616c0faac00195c86.tar.gz
pactl: SUBSCRIBE add a newline after every json message
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/748>
-rw-r--r--src/utils/pactl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/pactl.c b/src/utils/pactl.c
index 2761ebaaf..9e343954f 100644
--- a/src/utils/pactl.c
+++ b/src/utils/pactl.c
@@ -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"),