summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-05-28 20:05:17 +0200
committerHarald Welte <laforge@gnumonks.org>2017-05-28 20:06:01 +0200
commitd045f1766f68cca56d6961311fde79d8f8211a62 (patch)
tree17a62dde763baf5c0b8ba4d1870cdf90b52843dd
parent6c7fd7958c48fa2664dd3af052d506dccc088648 (diff)
procqueue.c: Logging unficiation (always use the [x] prefix)
-rw-r--r--src/procqueue.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/procqueue.c b/src/procqueue.c
index b61be89..01ad581 100644
--- a/src/procqueue.c
+++ b/src/procqueue.c
@@ -73,7 +73,7 @@ pq_add_item(struct pq *pq)
struct pq_item *item;
if (pq->n_items == MAX_PQ_ITEMS) {
- fprintf(stderr, "Processing Queue cannot handle more than %u items\n",
+ fprintf(stderr, "[!] Processing Queue cannot handle more than %u items\n",
MAX_PQ_ITEMS);
return NULL;
}
@@ -102,7 +102,7 @@ pq_prepare(struct pq *pq)
struct pq_item *item = pq->items[i];
if (item->len_in && item->len_in != len_prev) {
- fprintf(stderr, "PQ item requires input size %u, but previous output is %u\n",
+ fprintf(stderr, "[!] PQ item requires input size %u, but previous output is %u\n",
item->len_in, len_prev);
return -EINVAL;
}
@@ -148,7 +148,7 @@ pq_execute(struct pq *pq)
rv = item->proc(item->state, buf, buf_prev, len_prev);
if (rv < 0) {
- fprintf(stderr, "pq_execute(): abort, item returned %d\n", rv);
+ fprintf(stderr, "[!] pq_execute(): abort, item returned %d\n", rv);
return rv;
}