From 7c55d6e91d21971e187bf9602dce38cb49666cc4 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 28 Oct 2009 23:27:14 +0100 Subject: clients: drop definition of BUFSIZE which is unused --- src/utils/pactl.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/utils/pactl.c') diff --git a/src/utils/pactl.c b/src/utils/pactl.c index 141ab5b1..51de1204 100644 --- a/src/utils/pactl.c +++ b/src/utils/pactl.c @@ -44,8 +44,6 @@ #include #include -#define BUFSIZE (16*1024) - static pa_context *context = NULL; static pa_mainloop_api *mainloop_api = NULL; -- cgit From 8678f565322ccc1bfbaa0f21024f7255ed58b933 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 28 Oct 2009 23:27:50 +0100 Subject: pactl: include information about client context in pactl stat output --- src/utils/pactl.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/utils/pactl.c') diff --git a/src/utils/pactl.c b/src/utils/pactl.c index 51de1204..7ef02ec9 100644 --- a/src/utils/pactl.c +++ b/src/utils/pactl.c @@ -156,10 +156,23 @@ static void get_server_info_callback(pa_context *c, const pa_server_info *i, voi return; } + printf(_("Server String: %s\n" + "Library Protocol Version: %u\n" + "Server Protocol Version: %u\n" + "Is Local: %s\n" + "Client Index: %u\n" + "Tile Size: %zu\n"), + pa_context_get_server(c), + pa_context_get_protocol_version(c), + pa_context_get_server_protocol_version(c), + pa_yes_no(pa_context_is_local(c)), + pa_context_get_index(c), + pa_context_get_tile_size(c, NULL)); + pa_sample_spec_snprint(ss, sizeof(ss), &i->sample_spec); pa_channel_map_snprint(cm, sizeof(cm), &i->channel_map); - printf(_("User name: %s\n" + printf(_("User Name: %s\n" "Host Name: %s\n" "Server Name: %s\n" "Server Version: %s\n" -- cgit From 78984e439553f5e6eeb97c90ec1df9141fbe91d8 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 28 Oct 2009 23:28:12 +0100 Subject: pactl: format cookie a little bit nicer --- src/utils/pactl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/utils/pactl.c') diff --git a/src/utils/pactl.c b/src/utils/pactl.c index 7ef02ec9..ee67c425 100644 --- a/src/utils/pactl.c +++ b/src/utils/pactl.c @@ -180,7 +180,7 @@ static void get_server_info_callback(pa_context *c, const pa_server_info *i, voi "Default Channel Map: %s\n" "Default Sink: %s\n" "Default Source: %s\n" - "Cookie: %08x\n"), + "Cookie: %04x:%04x\n"), i->user_name, i->host_name, i->server_name, @@ -189,7 +189,8 @@ static void get_server_info_callback(pa_context *c, const pa_server_info *i, voi cm, i->default_sink_name, i->default_source_name, - i->cookie); + i->cookie >> 16, + i->cookie & 0xFFFFU); complete_action(); } -- cgit