Revision: 54510
http://brlcad.svn.sourceforge.net/brlcad/?rev=54510&view=rev
Author: carlmoore
Date: 2013-02-28 18:35:59 +0000 (Thu, 28 Feb 2013)
Log Message:
-----------
minor format changes to messages
Modified Paths:
--------------
brlcad/trunk/src/util/bwthresh.c
Modified: brlcad/trunk/src/util/bwthresh.c
===================================================================
--- brlcad/trunk/src/util/bwthresh.c 2013-02-28 17:57:32 UTC (rev 54509)
+++ brlcad/trunk/src/util/bwthresh.c 2013-02-28 18:35:59 UTC (rev 54510)
@@ -37,7 +37,7 @@
#include "bu.h"
-#define USAGE "Usage: 'bwthresh val ...'\n"
+#define USAGE "Usage: bwthresh values ...\n"
int
@@ -53,22 +53,22 @@
bu_exit(1, "%s", USAGE);
}
if (nm_threshs > 255) {
- bu_exit(1, "Too many thresholds!\n");
+ bu_exit(1, "bwthresh: Too many thresholds!\n");
}
thresh_val = (int *)bu_malloc((unsigned) (nm_threshs * sizeof(int)),
"thresh_val");
bin_color = (unsigned char *)bu_malloc((unsigned) ((nm_threshs + 1) *
sizeof(int)), "bin_color");
for (i = 0; i < nm_threshs; ++i) {
if (sscanf(*++argv, "%d", thresh_val + i) != 1) {
- bu_log("Illegal threshold value: '%s'\n", *argv);
+ bu_log("bwthresh: Illegal threshold value: '%s'\n", *argv);
bu_exit(1, "%s", USAGE);
}
if ((unsigned char) thresh_val[i] != thresh_val[i]) {
- bu_exit(1, "Threshold[%d] value %d out of range. Need 0 <= v <=
255\n",
+ bu_exit(1, "bwthresh: Threshold[%d] value %d out of range. Need 0
<= value <= 255\n",
i, thresh_val[i]);
}
if ((i > 0) && (thresh_val[i] <= thresh_val[i - 1])) {
- bu_exit(1, "Threshold values not strictly increasing\n");
+ bu_exit(1, "bwthresh: Threshold values not strictly increasing\n");
}
bin_color[i] = 256 * i / nm_threshs;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits