summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-10-30 11:12:23 +0100
committerGravatar Christian Hesse <mail@eworm.de>2013-10-30 11:12:23 +0100
commit1b6ecff33552bc4f7741b3c0778b901d93527c97 (patch)
tree183966f9484642157557d15cab07ce03010e0434
parent0f707e47a346cbace8f4a889ab85c819bb71df9b (diff)
downloadpacredir-1b6ecff33552bc4f7741b3c0778b901d93527c97.tar.gz
pacredir-1b6ecff33552bc4f7741b3c0778b901d93527c97.tar.zst
justify output streams
-rw-r--r--pacredir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pacredir.c b/pacredir.c
index eaf8134..9755a41 100644
--- a/pacredir.c
+++ b/pacredir.c
@@ -79,7 +79,7 @@ static void browse_callback(AvahiServiceBrowser *b, AvahiIfIndex interface, Avah
host = get_fqdn(name, domain);
# if defined DEBUG
- fprintf(stderr, "NEW: service '%s' of type '%s' in domain '%s'\n", name, type, domain);
+ printf("NEW: service '%s' of type '%s' in domain '%s'\n", name, type, domain);
# endif
if (flags & AVAHI_LOOKUP_RESULT_LOCAL)
@@ -122,7 +122,7 @@ out:
host = get_fqdn(name, domain);
# if defined DEBUG
- fprintf(stderr, "REMOVE: service '%s' of type '%s' in domain '%s'\n", name, type, domain);
+ printf("REMOVE: service '%s' of type '%s' in domain '%s'\n", name, type, domain);
# endif
while (tmphosts->host != NULL) {
@@ -257,7 +257,7 @@ static int ahc_echo(void * cls, struct MHD_Connection * connection, const char *
bzero(&fst, sizeof(fst));
if (stat(filename, &fst) != 0)
- printf("stat() failed\n");
+ fprintf(stderr, "stat() failed, you do not have a local copy of %s\n", basename);
else
last_modified_recent = fst.st_mtime;