Revision: 55278
          http://sourceforge.net/p/brlcad/code/55278
Author:   carlmoore
Date:     2013-05-01 18:02:19 +0000 (Wed, 01 May 2013)
Log Message:
-----------
fix types

Modified Paths:
--------------
    brlcad/trunk/src/liboptical/material.c
    brlcad/trunk/src/liboptical/photonmap.c

Modified: brlcad/trunk/src/liboptical/material.c
===================================================================
--- brlcad/trunk/src/liboptical/material.c      2013-05-01 17:51:34 UTC (rev 
55277)
+++ brlcad/trunk/src/liboptical/material.c      2013-05-01 18:02:19 UTC (rev 
55278)
@@ -139,7 +139,7 @@
     if (strlen(material) < sizeof(sh_name)) {
        bu_strlcpy(sh_name, material, sizeof(sh_name));
     } else {
-       bu_log("shader name too long \"%s\" %zu > %d\n",
+       bu_log("shader name too long \"%s\" %zu > %lu\n",
               material, strlen(material), sizeof(sh_name));
        return (struct mfuncs *)NULL;
     }

Modified: brlcad/trunk/src/liboptical/photonmap.c
===================================================================
--- brlcad/trunk/src/liboptical/photonmap.c     2013-05-01 17:51:34 UTC (rev 
55277)
+++ brlcad/trunk/src/liboptical/photonmap.c     2013-05-01 18:02:19 UTC (rev 
55278)
@@ -1110,7 +1110,7 @@
     t = time(NULL) - starttime;
     p = (float)ICSize/PMap[PM_GLOBAL]->MaxPhotons + .015;
     tl = (float)t*1.0/p - t;
-    bu_log("    Irradiance Cache Progress: %d%%  Approximate time left: %d%d",
+    bu_log("    Irradiance Cache Progress: %d%%  Approximate time left: %f%f",
           (int)(100.0*p), (1.0/p-1.0)*(float)t, (float)t*1.0/p);
 #define BAH(s, w) if (tl > (s)) { float d = floor(tl / (((s) == 
0)?1.0:(float)(s))); \
        tl -= d * (s); bu_log("%d "w, (int)d, d>1?"s":""); }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to