]> mj.ucw.cz Git - paperjam.git/blobdiff - cmds.cc
Cleaned up debugging messages
[paperjam.git] / cmds.cc
diff --git a/cmds.cc b/cmds.cc
index c809884027c02b8e78ab7b6e0be30efcf3c1c3d3..ece509d8cfb9efa6c5a16c1175011cb196b0f461 100644 (file)
--- a/cmds.cc
+++ b/cmds.cc
@@ -1162,10 +1162,11 @@ void nup_cmd::try_config(nup_state &st)
   st.scale = scale_to_fit(image, window);
   st.fill_factor = (st.scale*image.width() * st.scale*image.height()) / (st.paper_w * st.paper_h);
 
-  debug("Try: %dx%d on %.3f x %.3f => scale %.3f, fill %.6f",
-    st.cols, st.rows,
-    st.paper_w, st.paper_h,
-    st.scale, st.fill_factor);
+  if (debug_level > 1)
+    debug("Try: %dx%d on %.3f x %.3f => scale %.3f, fill %.6f",
+          st.cols, st.rows,
+         st.paper_w, st.paper_h,
+         st.scale, st.fill_factor);
 
   if (!found_solution || best.fill_factor < st.fill_factor)
     {
@@ -1251,7 +1252,10 @@ void nup_cmd::find_config(vector<page *> &in, BBox *page_boxes)
 
   if (!found_solution)
     err("No feasible solution found");
-  debug("Best: %dx%d on %.3f x %.3f", best.cols, best.rows, best.paper_w, best.paper_h);
+  debug("Best: %dx%d on %.3f x %.3f => scale %.3f, fill %.6f",
+        best.cols, best.rows,
+       best.paper_w, best.paper_h,
+       best.scale, best.fill_factor);
   debug_indent -= 4;
 }