Index: /branches/eam_branches/ipp-20150419/Ohana/src/opihi/cmd.astro/cdensify.c
===================================================================
--- /branches/eam_branches/ipp-20150419/Ohana/src/opihi/cmd.astro/cdensify.c	(revision 38306)
+++ /branches/eam_branches/ipp-20150419/Ohana/src/opihi/cmd.astro/cdensify.c	(revision 38307)
@@ -73,6 +73,6 @@
   CHECKVAL(dY);
 
-  Nx = (Xmax - Xmin) / dX + 1;
-  Ny = (Ymax - Ymin) / dY + 1;
+  Nx = abs((Xmax - Xmin) / dX) + 1;
+  Ny = abs((Ymax - Ymin) / dY) + 1;
   
   Coords newcoords = graphmode.coords;
Index: /branches/eam_branches/ipp-20150419/Ohana/src/opihi/dvo/gstar.c
===================================================================
--- /branches/eam_branches/ipp-20150419/Ohana/src/opihi/dvo/gstar.c	(revision 38306)
+++ /branches/eam_branches/ipp-20150419/Ohana/src/opihi/dvo/gstar.c	(revision 38307)
@@ -310,7 +310,7 @@
 	gprint (GP_LOG, "%3d   ",  catalog.average[k].Nmeasure);
 	gprint (GP_LOG, "%4.1f ",  catalog.average[k].ChiSqAve);
-	gprint (GP_LOG, "%5x ",    catalog.average[k].flags);
-	gprint (GP_LOG, "%x ",     catalog.average[k].objID);
-	gprint (GP_LOG, "%x ",     catalog.average[k].catID);
+	gprint (GP_LOG, "0x%08x ", catalog.average[k].flags);
+	gprint (GP_LOG, "0x%08x ", catalog.average[k].objID);
+	gprint (GP_LOG, "0x%08x ", catalog.average[k].catID);
 	
 	if (FULL_OUTPUT) {
@@ -774,7 +774,7 @@
     case GSTAR_SECF_FLAGS: /* secfilt flags */
       if (seq == -1) {
-	gprint (GP_LOG, "%08x ", 0);
-      } else {
-	gprint (GP_LOG, "%08x ", secfilt[seq].flags);
+	gprint (GP_LOG, "0x%08x ", 0);
+      } else {
+	gprint (GP_LOG, "0x%08x ", secfilt[seq].flags);
       }
       break;
