Index: trunk/ippTools/src/dettool_normalizedexp.c
===================================================================
--- trunk/ippTools/src/dettool_normalizedexp.c	(revision 19092)
+++ trunk/ippTools/src/dettool_normalizedexp.c	(revision 23688)
@@ -72,9 +72,9 @@
 {
     PS_ASSERT_PTR_NON_NULL(config, false);
-    
+
     PXOPT_LOOKUP_S64(det_id, config->args, "-det_id", true, false); // required
     PXOPT_LOOKUP_S32(iteration, config->args, "-iteration", false, false);
-    PXOPT_LOOKUP_S16(code, config->args, "-code", false, false);
-    PXOPT_LOOKUP_STR(recipe, config->args, "-recip", (code == 0), false); // Required if code == 0
+    PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false);
+    PXOPT_LOOKUP_STR(recipe, config->args, "-recip", (fault == 0), false); // Required if fault == 0
     PXOPT_LOOKUP_F64(bg, config->args, "-bg", false, false);
     PXOPT_LOOKUP_F64(bg_stdev, config->args, "-bg_stdev", false, false);
@@ -117,20 +117,20 @@
     // insert the new row into the detProcessedImfile table
     if (!detNormalizedExpInsert(
-	    config->dbh,
-	    det_id,
-	    iteration,
-	    recipe,
-	    bg,
-	    bg_stdev,
-	    bg_mean_stdev,
-	    user_1,
-	    user_2,
-	    user_3,
-	    user_4,
-	    user_5,
-	    path_base,
-	    "full",
-	    code
-	    )) {
+            config->dbh,
+            det_id,
+            iteration,
+            recipe,
+            bg,
+            bg_stdev,
+            bg_mean_stdev,
+            user_1,
+            user_2,
+            user_3,
+            user_4,
+            user_5,
+            path_base,
+            "full",
+            fault
+            )) {
         psError(PS_ERR_UNKNOWN, false, "database error");
         return false;
@@ -221,5 +221,5 @@
     PXOPT_COPY_S64(config->args, where, "-det_id",    "det_id", "==");
     PXOPT_COPY_S32(config->args, where, "-iteration", "iteration", "==");
-    PXOPT_COPY_S16(config->args, where, "-code",      "fault", "==");
+    PXOPT_COPY_S16(config->args, where, "-fault",      "fault", "==");
 
     psString query = pxDataGet("dettool_revertnormalizedexp.sql");
@@ -260,5 +260,5 @@
 
     if (!setNormExpDataState(config, det_id, iteration, data_state)) {
-	return false;
+        return false;
     }
     return true;
