diff --git a/src/init_jobs.c b/src/init_jobs.c index a35a88f..d3114a8 100755 --- a/src/init_jobs.c +++ b/src/init_jobs.c @@ -70,7 +70,7 @@ static void ParseJob(const cJSON* jobItem, Job* resJob) } if (cmdLinesCnt > MAX_CMD_CNT_IN_ONE_JOB) { - printf("[Init] ParseAllJobs, too many cmds[cnt %d] in one job, it should not exceed %d.\n",\ + printf("[Init] ParseAllJobs, too many cmds[cnt %d] in one job, it should not exceed %d.\n", cmdLinesCnt, MAX_CMD_CNT_IN_ONE_JOB); return; } @@ -107,7 +107,7 @@ void ParseAllJobs(const cJSON* fileRoot) } if (jobArrSize <= 0 || jobArrSize > MAX_JOBS_COUNT) { - printf("[Init] ParseAllJobs, jobs count %d is invalid, should be positive and not exceeding %d.\n",\ + printf("[Init] ParseAllJobs, jobs count %d is invalid, should be positive and not exceeding %d.\n", jobArrSize, MAX_JOBS_COUNT); return; } diff --git a/src/init_read_cfg.c b/src/init_read_cfg.c index 63fda1f..3072dce 100755 --- a/src/init_read_cfg.c +++ b/src/init_read_cfg.c @@ -184,7 +184,7 @@ static int GetServiceCaps(const cJSON* curArrItem, Service* curServ) } if (capsCnt > MAX_CAPS_CNT_FOR_ONE_SERVICE) { - printf("[Init] GetServiceCaps, too many caps[cnt %d] for one service, should not exceed %d.\n",\ + printf("[Init] GetServiceCaps, too many caps[cnt %d] for one service, should not exceed %d.\n", capsCnt, MAX_CAPS_CNT_FOR_ONE_SERVICE); return SERVICE_FAILURE; } @@ -222,7 +222,7 @@ static void ParseAllServices(const cJSON* fileRoot) } if (servArrSize > MAX_SERVICES_CNT_IN_FILE) { - printf("[Init] InitReadCfg, too many services[cnt %d] detected, should not exceed %d.\n",\ + printf("[Init] InitReadCfg, too many services[cnt %d] detected, should not exceed %d.\n", servArrSize, MAX_SERVICES_CNT_IN_FILE); return; }