Skip to content

Commit 6f9686a

Browse files
committed
Another debugging attempt.
1 parent 33ee711 commit 6f9686a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/gdl.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,13 @@ int main(int argc, char *argv[])
296296
strcat(s,driversPath.c_str());
297297
//set nex drvPath as PLPLOT_DRV_DIR
298298
putenv(s);
299+
// debug pipeline -> Remove before merge
300+
fprintf(stderr, "Checking driver dir: %s\n", driversPath.c_str());
299301
//Now, it is possible that GDL WAS compiled with INSTALL_LOCAL_DRIVERS, but the plplot installation is NOT compiled with DYNAMIC DRIVERS.
300302
//So I check here the plplot driver list to check if wxwidgets is present. If not, useLocalDriver=false
301303
bool driversOK=GDLGStream::checkPlplotDriver("ps"); //ps because xwin and wxwidgets may be absent. ps is always present.
304+
// debug pipeline -> Remove before merge
305+
fprintf(stderr, "Checking driver dir '%s' reported driver found: %d\n", driversPath.c_str(), driversOK);
302306
if (!driversOK) {
303307
driversNotFound=true;
304308
useLocalDrivers=false;

src/gdlgstream.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,6 @@ class GDLGStream: public plstream
233233
}
234234

235235
static bool checkPlplotDriver(const char *driver) {
236-
// debug pipeline -> Remove before merge
237-
fprintf(stderr, "Checking driver dir: %s\n", driver);
238236
int numdevs = 128;
239237
const char **devlongnames = (const char**) malloc(numdevs * sizeof (char*));
240238
const char **devnames = (const char**) malloc(numdevs * sizeof (char*));
@@ -246,8 +244,6 @@ class GDLGStream: public plstream
246244
break;
247245
}
248246
}
249-
// debug pipeline -> Remove before merge
250-
fprintf(stderr, "Checking driver dir '%s' reported driver found: %d\n", driver, found);
251247
free(devlongnames);
252248
free(devnames);
253249
return found;

0 commit comments

Comments
 (0)