diff options
author | Tim 'mithro' Ansell <me@mith.ro> | 2018-06-10 16:16:40 -0700 |
---|---|---|
committer | Tim 'mithro' Ansell <me@mith.ro> | 2018-06-14 17:31:32 -0700 |
commit | b1d0af7edd485cf25159da602969468f1d3df500 (patch) | |
tree | 9d8e0681ef4f932847dad9baa2fec3a2dbd359e6 | |
parent | f23b1f212affec49cc55df819cd47e0428b6eb78 (diff) | |
download | icestorm-b1d0af7edd485cf25159da602969468f1d3df500.tar.gz icestorm-b1d0af7edd485cf25159da602969468f1d3df500.tar.bz2 icestorm-b1d0af7edd485cf25159da602969468f1d3df500.zip |
icetime: Output where the chipdb should be found.
Makes it easier to know where it can't be.
-rw-r--r-- | icetime/icetime.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/icetime/icetime.cc b/icetime/icetime.cc index 4a82842..d2363a3 100644 --- a/icetime/icetime.cc +++ b/icetime/icetime.cc @@ -343,12 +343,14 @@ void read_chipdb() homedir += getenv("HOME"); #endif snprintf(buffer, 1024, "%s%s/share/" CHIPDB_SUBDIR "/chipdb-%s.txt", homedir.c_str(), PREFIX+1, config_device.c_str()); - } else + } else { snprintf(buffer, 1024, PREFIX "/share/" CHIPDB_SUBDIR "/chipdb-%s.txt", config_device.c_str()); + } FILE *fdb = fopen(buffer, "r"); if (fdb == nullptr) { perror("Can't open chipdb file"); + fprintf(stderr, " %s\n", buffer); exit(1); } |