Fix format specifiers in tramp-adb.el
* lisp/net/tramp-adb.el (tramp-adb-get-device): Fix format specifiers for port. (Bug#55651) Copyright-paperwork-exempt: yes
This commit is contained in:
parent
a9f17ccce3
commit
9283508fb2
1 changed files with 2 additions and 2 deletions
|
@ -1112,9 +1112,9 @@ E.g. a host name \"192.168.1.1#5555\" returns \"192.168.1.1:5555\"
|
||||||
tramp-prefix-port-format ":"
|
tramp-prefix-port-format ":"
|
||||||
(cond ((member host devices) host)
|
(cond ((member host devices) host)
|
||||||
;; This is the case when the host is connected to the default port.
|
;; This is the case when the host is connected to the default port.
|
||||||
((member (format "%s%s%d" host tramp-prefix-port-format port)
|
((member (format "%s%s%s" host tramp-prefix-port-format port)
|
||||||
devices)
|
devices)
|
||||||
(format "%s:%d" host port))
|
(format "%s:%s" host port))
|
||||||
;; An empty host name shall be mapped as well, when there
|
;; An empty host name shall be mapped as well, when there
|
||||||
;; is exactly one entry in `devices'.
|
;; is exactly one entry in `devices'.
|
||||||
((and (zerop (length host)) (= (length devices) 1))
|
((and (zerop (length host)) (= (length devices) 1))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue