aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Dziendzielski <tomasz.dziendzielski@gmail.com>2020-11-27 10:44:55 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-11-29 00:06:07 +0000
commit69f205c41902e17933b81b1450636848e8da2126 (patch)
treead2f8c9ad6457ad1cad793cd3f44cbfe6f681d4d
parentcca0d7f15b7197095cd587420d31b187620c3093 (diff)
downloadpseudo-69f205c41902e17933b81b1450636848e8da2126.tar.gz
pseudo-69f205c41902e17933b81b1450636848e8da2126.tar.bz2
pseudo-69f205c41902e17933b81b1450636848e8da2126.zip
pseudo_client: Print PSEUDO_LOGFILE path in abort message on path mismatches
The logfile path should be more visible so it's easier investigate the error. Signed-off-by: Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--pseudo_client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pseudo_client.c b/pseudo_client.c
index 116d926..ea9d551 100644
--- a/pseudo_client.c
+++ b/pseudo_client.c
@@ -1965,7 +1965,9 @@ pseudo_client_op(pseudo_op_t op, int access, int fd, int dirfd, const char *path
if (result) {
pseudo_debug(PDBGF_OP, "(%d) %s", getpid(), pseudo_res_name(result->result));
if (result->result == RESULT_ABORT) {
- pseudo_diag("abort()ing pseudo client by server request. See https://wiki.yoctoproject.org/wiki/Pseudo_Abort for more details on this.\n");
+ char *local_state_dir = pseudo_get_value("PSEUDO_LOCALSTATEDIR");
+ pseudo_diag("abort()ing pseudo client by server request. See https://wiki.yoctoproject.org/wiki/Pseudo_Abort for more details on this.\n"
+ "Check logfile: %s/%s\n", local_state_dir, PSEUDO_LOGFILE);
abort();
}
if (op == OP_STAT || op == OP_FSTAT) {