Revision: 45757
http://brlcad.svn.sourceforge.net/brlcad/?rev=45757&view=rev
Author: brlcad
Date: 2011-08-02 15:33:32 +0000 (Tue, 02 Aug 2011)
Log Message:
-----------
more type quellage (someone needs to compile strict) .. use bu_log() instead of
fprintf(). only bu_log() supports %z for size_t types (with c90).
Modified Paths:
--------------
brlcad/trunk/src/rt/do.c
Modified: brlcad/trunk/src/rt/do.c
===================================================================
--- brlcad/trunk/src/rt/do.c 2011-08-02 15:32:18 UTC (rev 45756)
+++ brlcad/trunk/src/rt/do.c 2011-08-02 15:33:32 UTC (rev 45757)
@@ -836,7 +836,7 @@
/* Multiple frame buffer mode */
for(full_incr_sample = 1; full_incr_sample <= full_incr_nsamples;
full_incr_sample++){
- fprintf(stderr, "sample: %d\n", full_incr_sample);
+ bu_log("sample: %zu\n", full_incr_sample);
if(full_incr_sample > 1) /* first sample was already initialized */
view_2init(&APP, framename);
do_run(pix_start, pix_end);
@@ -1041,20 +1041,17 @@
register struct resource *res;
register int i;
- fprintf(stderr, "\nResource use summary, by processor:\n");
+ bu_log("\nResource use summary, by processor:\n");
res = &resource[0];
for (i=0; i<npsw; i++, res++) {
- fprintf(stderr, "---CPU %d:\n", i);
+ bu_log("---CPU %d:\n", i);
if (res->re_magic != RESOURCE_MAGIC) {
- fprintf(stderr, "Bad magic number!!\n");
+ bu_log("Bad magic number!\n");
continue;
}
- fprintf(stderr, "seg len=%10ld get=%10ld free=%10ld\n",
- res->re_seglen, res->re_segget, res->re_segfree);
- fprintf(stderr, "partition len=%10ld get=%10ld free=%10ld\n",
- res->re_partlen, res->re_partget, res->re_partfree);
- fprintf(stderr, "boolstack len=%10ld\n",
- res->re_boolslen);
+ bu_log("seg len=%10ld get=%10ld free=%10ld\n", res->re_seglen,
res->re_segget, res->re_segfree);
+ bu_log("partition len=%10ld get=%10ld free=%10ld\n", res->re_partlen,
res->re_partget, res->re_partfree);
+ bu_log("boolstack len=%10ld\n", res->re_boolslen);
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits