From ed820e22cf01e9c172491ec045a2d9fd9ce4f8ef Mon Sep 17 00:00:00 2001 From: Anoop Saldanha Date: Tue, 4 Aug 2009 13:45:19 +0530 Subject: [PATCH] perf task bugs fixed v2 --- src/counters.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/counters.c b/src/counters.c index de135c32b1..b8e6b3d401 100644 --- a/src/counters.c +++ b/src/counters.c @@ -469,7 +469,7 @@ PerfCounterArray * PerfGetCounterArrayRange(u_int32_t s_id, u_int32_t e_id, * * @param pctx is a pointer to the tv's PerfContext * - * returns a counter-array for all the counters of this tm instance + * @returns a counter-array for all the counters of this tm instance */ PerfCounterArray * PerfGetAllCountersArray(PerfContext *pctx) { @@ -503,8 +503,8 @@ int PerfUpdateCounter(char *cname, char *tm_name, u_int32_t id, void *value, } if (value == NULL) { - printf("value is NULL\n"); - exit(0); + printf("Pointer to counter(value) supplied to PerfUpdateCounter is NULL\n"); + return 0; } pc = pctx->head;