Index: trunk/ippTools/src/pxtools.c
===================================================================
--- trunk/ippTools/src/pxtools.c	(revision 25913)
+++ trunk/ippTools/src/pxtools.c	(revision 25928)
@@ -61,5 +61,5 @@
         if (!state) {
             psError(PS_ERR_PROGRAMMING, false, "%s not found in row %ld of table %s",
-		    columnName, i, tableName);
+                    columnName, i, tableName);
             return false;
         }
@@ -70,5 +70,5 @@
             // if state isn't cleaned or full we can't set it to cleaned
             psError(PS_ERR_PROGRAMMING, true, "%s with state %s may not be exported cleaned",
-		    tableName, state);
+                    tableName, state);
             return false;
         }
@@ -90,19 +90,19 @@
     psAssert (entry, "%s should at least have a place-holder", name);
     if (entry->data.str) {
-	psListIterator *iter = psListIteratorAlloc (item->data.list, PS_LIST_HEAD, true);
-	psMetadataItem *item = NULL;
-	while ((item = psListGetAndIncrement(iter))) {
-	    // need to change the name and comment
-	    psFree (item->name);
-	    item->name = psStringCopy (field);
-	    psFree (item->comment);
-	    item->comment = psStringCopy (op);
-	    if (!psMetadataAddItem(where, item, PS_LIST_TAIL, PS_META_DUPLICATE_OK)) {
-		psError(PS_ERR_UNKNOWN, false, "failed to add item %s", field);
-		psFree(where);
-		return false;
-	    }
-	}
-	psFree (iter);
+        psListIterator *iter = psListIteratorAlloc (item->data.list, PS_LIST_HEAD, true);
+        psMetadataItem *item = NULL;
+        while ((item = psListGetAndIncrement(iter))) {
+            // need to change the name and comment
+            psFree (item->name);
+            item->name = psStringCopy (field);
+            psFree (item->comment);
+            item->comment = psStringCopy (op);
+            if (!psMetadataAddItem(where, item, PS_LIST_TAIL, PS_META_DUPLICATE_OK)) {
+                psError(PS_ERR_UNKNOWN, false, "failed to add item %s", field);
+                psFree(where);
+                return false;
+            }
+        }
+        psFree (iter);
     }
     return true;
@@ -198,5 +198,5 @@
     }
     if (psArrayLength(output) > 1) {
-        psError(PS_ERR_UNKNOWN, true, "unexpected number of rows found in dbversion: %" PRId64,
+        psError(PS_ERR_UNKNOWN, true, "unexpected number of rows found in dbversion: %ld",
                 psArrayLength(output));
         return false;
@@ -221,5 +221,5 @@
         return NULL;
     }
-    
+
     psString version = psMetadataLookupStr(NULL, md, "schema_version");
 
@@ -257,5 +257,5 @@
         return false;
     }
-    
+
     psMetadataItem *dbversion = psListGet(multi_item->data.list, 0);
     if (!dbversion) {
@@ -272,5 +272,5 @@
             return false;
         }
-        
+
         psString import_version = psMetadataLookupStr(NULL, md, "schema_version");
         if (import_version && strcmp(import_version, schema_version)) {
