summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-10-28 23:28:12 +0100
committerLennart Poettering <lennart@poettering.net>2009-10-28 23:28:12 +0100
commit78984e439553f5e6eeb97c90ec1df9141fbe91d8 (patch)
tree98b08e192098aa0b26847c8bf855e62c9bcdeb6f
parent8678f565322ccc1bfbaa0f21024f7255ed58b933 (diff)
pactl: format cookie a little bit nicer
-rw-r--r--src/utils/pactl.c5
1 files changed, 3 insertions, 2 deletions
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();
}