summaryrefslogtreecommitdiff
path: root/src/print_ipv6_addr.c
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2012-05-09 18:56:57 +0200
committerMichael Stapelberg <michael@stapelberg.de>2012-05-09 18:56:57 +0200
commit296eb5e7063b4051927f2e2bf94e1034bf64f60c (patch)
tree9d91807302af35783372848dbd028f21494c843e /src/print_ipv6_addr.c
parent88b157cc8a19a312d93cba1f9332fc40b385e253 (diff)
Error handling: Never output null as full_text (JSON), prefix messages with i3status (Thanks Artemis)
The former made i3bar crash, the latter is helpful for debugging.
Diffstat (limited to 'src/print_ipv6_addr.c')
-rw-r--r--src/print_ipv6_addr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/print_ipv6_addr.c b/src/print_ipv6_addr.c
index f987b59..b7f668a 100644
--- a/src/print_ipv6_addr.c
+++ b/src/print_ipv6_addr.c
@@ -51,7 +51,7 @@ static char *get_sockname(struct addrinfo *addr) {
if ((ret = getnameinfo((struct sockaddr*)&local, local_len,
buf, sizeof(buf), NULL, 0,
NI_NUMERICHOST)) != 0) {
- fprintf(stderr, "getnameinfo(): %s\n", gai_strerror(ret));
+ fprintf(stderr, "i3status: getnameinfo(): %s\n", gai_strerror(ret));
(void)close(fd);
return NULL;
}