emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-28 9283508fb2: Fix format specifiers in tramp-adb.el


From: Michael Albinus
Subject: emacs-28 9283508fb2: Fix format specifiers in tramp-adb.el
Date: Thu, 26 May 2022 12:10:08 -0400 (EDT)

branch: emacs-28
commit 9283508fb282cbd51b9376f17b5347246daf74f2
Author: Hayden Shenk <hayden.shenk@zetier.com>
Commit: Michael Albinus <michael.albinus@gmx.de>

    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
---
 lisp/net/tramp-adb.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/net/tramp-adb.el b/lisp/net/tramp-adb.el
index aa0f558a2b..1fe10a560b 100644
--- a/lisp/net/tramp-adb.el
+++ b/lisp/net/tramp-adb.el
@@ -1112,9 +1112,9 @@ E.g. a host name \"192.168.1.1#5555\" returns 
\"192.168.1.1:5555\"
        tramp-prefix-port-format ":"
        (cond ((member host devices) host)
             ;; 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)
-             (format "%s:%d" host port))
+             (format "%s:%s" host port))
             ;; An empty host name shall be mapped as well, when there
             ;; is exactly one entry in `devices'.
             ((and (zerop (length host)) (= (length devices) 1))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]