Skip to content

Commit e989ee5

Browse files
committed
Another debugging attempt.
1 parent 85b96e6 commit e989ee5

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
@@ -234,8 +234,6 @@ class GDLGStream: public plstream
234234
}
235235

236236
static bool checkPlplotDriver(const char *driver) {
237-
// debug pipeline -> Remove before merge
238-
fprintf(stderr, "Checking driver dir: %s\n", driver);
239237
int numdevs = 128;
240238
const char **devlongnames = (const char**) malloc(numdevs * sizeof (char*));
241239
const char **devnames = (const char**) malloc(numdevs * sizeof (char*));
@@ -247,8 +245,6 @@ class GDLGStream: public plstream
247245
break;
248246
}
249247
}
250-
// debug pipeline -> Remove before merge
251-
fprintf(stderr, "Checking driver dir '%s' reported driver found: %d\n", driver, found);
252248
free(devlongnames);
253249
free(devnames);
254250
return found;

0 commit comments

Comments
 (0)