# HG changeset patch # User timothy.murphy@nokia.com # Date 1269518076 0 # Node ID bda21097164cebe5928160e03b8dc81c1d41b475 # Parent f4ccb4c573daa7108891fc835a1b46013a34465f refactor: make talon's choice of result message easier to read in the code as per Richard's suggestion. diff -r f4ccb4c573da -r bda21097164c sbsv2/raptor/util/talon/talon.c --- a/sbsv2/raptor/util/talon/talon.c Tue Mar 16 17:04:08 2010 +0000 +++ b/sbsv2/raptor/util/talon/talon.c Thu Mar 25 11:54:36 2010 +0000 @@ -586,7 +586,7 @@ if (p->returncode != 0) { - char *exitstr = force_success ? "failed" : retries > 0 ? "retry" : "failed"; + char *exitstr = (force_success || retries <= 0) ? "failed" : "retry"; snprintf(status, STATUS_STRMAX - 1, "\n", exitstr, p->returncode, attempt, flagsstr, reasonstr ); } else { snprintf(status, STATUS_STRMAX - 1, "\n", attempt, flagsstr, reasonstr );