diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-08-17 02:25:59 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-08-17 02:25:59 +0200 |
commit | aa7a3ed83f0972bd6da3b272e7bbc9efb1409067 (patch) | |
tree | f67e173b2950901d85538677530f5afadfb93928 /kernel | |
parent | aa3a6663e2e9a63b88cfb1d008e3e246dc9fa677 (diff) | |
download | yosys-aa7a3ed83f0972bd6da3b272e7bbc9efb1409067.tar.gz yosys-aa7a3ed83f0972bd6da3b272e7bbc9efb1409067.tar.bz2 yosys-aa7a3ed83f0972bd6da3b272e7bbc9efb1409067.zip |
Fixed proc_{self,share}_dirname error handling
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/yosys.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/yosys.cc b/kernel/yosys.cc index dff31db07..599c92d52 100644 --- a/kernel/yosys.cc +++ b/kernel/yosys.cc @@ -207,8 +207,7 @@ std::string proc_self_dirname () char path [PATH_MAX]; ssize_t buflen = readlink("/proc/self/exe", path, sizeof(path)); if (buflen < 0) { - log_cmd_error("readlink(\"/proc/self/exe\") failed: %s", strerror(errno)); - log_abort(); + log_error("readlink(\"/proc/self/exe\") failed: %s\n", strerror(errno)); } while (buflen > 0 && path[buflen-1] != '/') buflen--; @@ -239,8 +238,7 @@ std::string proc_share_dirname () proc_share_path = proc_self_path + "../share/yosys/"; if (access(proc_share_path.c_str(), X_OK) == 0) return proc_share_path; - log_cmd_error("proc_share_dirname: unable to determine share/ directory!"); - log_abort(); + log_error("proc_share_dirname: unable to determine share/ directory!\n"); } bool fgetline(FILE *f, std::string &buffer) |