diff options
| author | Alexander Gavrilov | 2012-03-31 22:26:41 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-03-31 22:26:41 +0400 |
| commit | 9d6e26fa5fe6781d0650c14a7302981415680de9 (patch) | |
| tree | b6b8a5f203486b33311519a0c3150fbb46645e77 /plugins/workflow.cpp | |
| parent | 0f41608ed4b808205dd8734bbc52de64f6501c98 (diff) | |
| download | dfhack-9d6e26fa5fe6781d0650c14a7302981415680de9.tar.gz dfhack-9d6e26fa5fe6781d0650c14a7302981415680de9.tar.bz2 dfhack-9d6e26fa5fe6781d0650c14a7302981415680de9.tar.xz | |
Fix crashing color_ostream::printerr due to vfprintf vs fprintf mixup.
Also enable heap clearing in gdb mode, and fix a few newlines.
Diffstat (limited to 'plugins/workflow.cpp')
| -rw-r--r-- | plugins/workflow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/workflow.cpp b/plugins/workflow.cpp index 532665c7..e408df50 100644 --- a/plugins/workflow.cpp +++ b/plugins/workflow.cpp @@ -500,7 +500,7 @@ static bool recover_job(color_ostream &out, ProtectedJob *pj) pj->holder = df::building::find(pj->building_id); if (!pj->holder) { - out.printerr("Forgetting job %d (%s): holder building lost.", + out.printerr("Forgetting job %d (%s): holder building lost.\n", pj->id, ENUM_KEY_STR(job_type, pj->job_copy->job_type).c_str()); forget_job(out, pj); return true; @@ -509,7 +509,7 @@ static bool recover_job(color_ostream &out, ProtectedJob *pj) // Check its state and postpone or cancel if invalid if (pj->holder->jobs.size() >= 10) { - out.printerr("Forgetting job %d (%s): holder building has too many jobs.", + out.printerr("Forgetting job %d (%s): holder building has too many jobs.\n", pj->id, ENUM_KEY_STR(job_type, pj->job_copy->job_type).c_str()); forget_job(out, pj); return true; @@ -532,7 +532,7 @@ static bool recover_job(color_ostream &out, ProtectedJob *pj) { deleteJobStruct(recovered); - out.printerr("Inconsistency: job %d (%s) already in list.", + out.printerr("Inconsistency: job %d (%s) already in list.\n", pj->id, ENUM_KEY_STR(job_type, pj->job_copy->job_type).c_str()); return true; } |
