Revision: 76752
          http://sourceforge.net/p/brlcad/code/76752
Author:   starseeker
Date:     2020-08-14 14:14:31 +0000 (Fri, 14 Aug 2020)
Log Message:
-----------
That doesn't help - lots of bu_log calls are buried in subsequent function 
calls.  fwrite to stderr is failing when MGED launches rtweight and then 
quites...

Modified Paths:
--------------
    brlcad/branches/RELEASE/src/rt/main.c

Modified: brlcad/branches/RELEASE/src/rt/main.c
===================================================================
--- brlcad/branches/RELEASE/src/rt/main.c       2020-08-14 14:03:48 UTC (rev 
76751)
+++ brlcad/branches/RELEASE/src/rt/main.c       2020-08-14 14:14:31 UTC (rev 
76752)
@@ -432,7 +432,7 @@
            bu_vls_strcat(&str, " ...");
        else
            bu_vls_putc(&str, ';');
-       fprintf(stderr, "%s\n", bu_vls_addr(&str));
+       bu_log("%s\n", bu_vls_addr(&str));
        bu_vls_free(&str);
     }
 
@@ -439,7 +439,7 @@
     /* Build directory of GED database */
     rt_prep_timer();
     if ((rtip = rt_dirbuild(title_file, idbuf, sizeof(idbuf))) == RTI_NULL) {
-       fprintf(stderr, "rt:  rt_dirbuild(%s) failure\n", title_file);
+       bu_log("rt:  rt_dirbuild(%s) failure\n", title_file);
 #ifdef MPI_ENABLED
        MPI_Finalize();
 #endif
@@ -448,9 +448,9 @@
     APP.a_rt_i = rtip;
     (void)rt_get_timer(&times, NULL);
     if (rt_verbosity & VERBOSE_MODELTITLE)
-       fprintf(stderr, "db title:  %s\n", idbuf);
+       bu_log("db title:  %s\n", idbuf);
     if (rt_verbosity & VERBOSE_STATS)
-       fprintf(stderr, "DIRBUILD: %s\n", bu_vls_addr(&times));
+       bu_log("DIRBUILD: %s\n", bu_vls_addr(&times));
     bu_vls_free(&times);
     memory_summary();
 
@@ -513,7 +513,7 @@
     if (matflag && !isatty(fileno(stdin))) {
        int oret = old_way(stdin);
        if (oret < 0) {
-           fprintf(stderr, "%s: no objects specified -- raytrace aborted\n", 
argv[0]);
+           bu_log("%s: no objects specified -- raytrace aborted\n", argv[0]);
            usage(argv[0], 0);
            ret = 1;
        }

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



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to