summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2018-07-13 14:27:33 +0200
committerMichael Albinus <michael.albinus@gmx.de>2018-07-13 14:27:33 +0200
commit1c862297e4ad50b14f246fca724e148538e7421b (patch)
tree04ab678392b92a513cbabe009fe75a65529fd271
parentb38b91a83491b6812e8267d0247355f0e8e3e189 (diff)
downloademacs-1c862297e4ad50b14f246fca724e148538e7421b.tar.gz
Fix format error in Faccept_process_output
* src/process.c (Faccept_process_output): Do not use format spec "%p", it isn't valid for error().
-rw-r--r--src/process.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/process.c b/src/process.c
index f7b96d28543..8629f834e79 100644
--- a/src/process.c
+++ b/src/process.c
@@ -4602,12 +4602,11 @@ is nil, from any process) before the timeout expired. */)
{
Lisp_Object proc_thread_name = XTHREAD (proc->thread)->name;
- if (STRINGP (proc_thread_name))
- error ("Attempt to accept output from process %s locked to thread %s",
- SDATA (proc->name), SDATA (proc_thread_name));
- else
- error ("Attempt to accept output from process %s locked to thread %p",
- SDATA (proc->name), XTHREAD (proc->thread));
+ error ("Attempt to accept output from process %s locked to thread %s",
+ SDATA (proc->name),
+ STRINGP (proc_thread_name)
+ ? SDATA (proc_thread_name)
+ : SDATA (Fprin1_to_string (proc->thread, Qt)));
}
}
else