Index: branches/eam_branches/20091201/psModules/src/detrend/pmPattern.c
===================================================================
--- branches/eam_branches/20091201/psModules/src/detrend/pmPattern.c	(revision 26807)
+++ branches/eam_branches/20091201/psModules/src/detrend/pmPattern.c	(revision 26819)
@@ -258,5 +258,7 @@
         }
         float correction = background - mean->data.F32[i]; // Correction to apply
-        psLogMsg("psModules.detrend", PS_LOG_DETAIL, "Correcting background of cell %d by %f", i, correction);
+        const char *cellName = psMetadataLookupStr(NULL, cell->concepts, "CELL.NAME"); // Name of cell
+        psLogMsg("psModules.detrend", PS_LOG_DETAIL, "Correcting background of cell %s by %f",
+                 cellName, correction);
         psBinaryOp(ro->image, ro->image, "+", psScalarAlloc(correction, PS_TYPE_F32));
     }
