1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-26 23:31:55 -08:00

Don't inline tramp-debug-message

* lisp/net/tramp.el (tramp-debug-message): Change defsubst into defun.
Until now the byte-compiler hasn't been clever enough to inline this
function but this is about to change; the code expansion is
unnecessary and makes compiler improvements more difficult to gauge.
This commit is contained in:
Mattias Engdegård 2021-02-11 20:41:02 +01:00
parent b24ae269b2
commit c4459a10a6

View file

@ -1750,7 +1750,7 @@ The outline level is equal to the verbosity of the Tramp message."
(tramp-compat-string-replace "/" " " (tramp-debug-buffer-name vec))
(tramp-compat-temporary-file-directory)))
(defsubst tramp-debug-message (vec fmt-string &rest arguments)
(defun tramp-debug-message (vec fmt-string &rest arguments)
"Append message to debug buffer of VEC.
Message is formatted with FMT-STRING as control string and the remaining
ARGUMENTS to actually emit the message (if applicable)."