From unknown Fri Jun 20 07:15:30 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#55651 <55651@debbugs.gnu.org> To: bug#55651 <55651@debbugs.gnu.org> Subject: Status: 28.1; Wrong format specifiers in tramp-adb-get-device Reply-To: bug#55651 <55651@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:15:30 +0000 retitle 55651 28.1; Wrong format specifiers in tramp-adb-get-device reassign 55651 emacs submitter 55651 Hayden Shenk severity 55651 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu May 26 01:21:43 2022 Received: (at submit) by debbugs.gnu.org; 26 May 2022 05:21:43 +0000 Received: from localhost ([127.0.0.1]:56877 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nu5wM-0005VD-28 for submit@debbugs.gnu.org; Thu, 26 May 2022 01:21:43 -0400 Received: from lists.gnu.org ([209.51.188.17]:57914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nu2zd-0008HO-ST for submit@debbugs.gnu.org; Wed, 25 May 2022 22:12:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45506) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nu2zd-0002P3-Mn for bug-gnu-emacs@gnu.org; Wed, 25 May 2022 22:12:53 -0400 Received: from mail-io1-xd2b.google.com ([2607:f8b0:4864:20::d2b]:45858) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nu2za-0005tf-2E for bug-gnu-emacs@gnu.org; Wed, 25 May 2022 22:12:53 -0400 Received: by mail-io1-xd2b.google.com with SMTP id d198so316489iof.12 for ; Wed, 25 May 2022 19:12:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zetier-com.20210112.gappssmtp.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=YQNpIZjfNaid04tDkYTuWZiqZroZLm5QiBF3LwV8ASU=; b=ybn8PONU6syiW8ZivheT8axMxqYce2SgRmAiNciB0l2FRnXdu7eDUM1DwdnY8J9Swm nRpsEAqfdHfkpMAU81xIMcRfT+dy9zcAocDsZ/5UXVwJfD4rs1dtalF5nVCjS3qRzVyz CdlM81lfLGbcyTlqno20+jsTj9fwveWxKlDENbkun18dPSvkrh/bTE8aI+aITNQeWRfK n9jZNHmGlT8t2pNKBDyh1+48xITN+QLJSnIYr2USGkK/irRSuKW+y1+Rp3bS51jTKX9Z 18KSEQSpqSdADQGLmTcxXRzxjROXHLpNXqOyo58xhhmqrhbhZ4swPRcc4qrOYJNK/wFq 3pEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=YQNpIZjfNaid04tDkYTuWZiqZroZLm5QiBF3LwV8ASU=; b=tg2yKmchbdjgI47sKZw5A214BKgx+ikdmOh5uLxGjGpMy85jAHmO9/5ZCMWCUJVCP8 xi4TJaiF7w4Nzhx8+HifuOsxIuV02bj5EC3SUE4MiCoREdaJadbiJkH8QkuDi4bxqfl3 yDv7O9mw9sru2FamN4DvFxG/brGZtnpl4rmqtShx3dCEQmLywnVGqGBsDrAuWFnm6AuJ j/h/lTmTIcQSpAVD+WvNz8phB9q9OEVDkh9JJFfMD2J3Yb1Yn6ard/KbQHUvhG31X7yr IJbWe+wqepik9C05KJ+IsFbI66tENOUFl6SVLjUeD/gMIk4w+g6T4mkH5KLyettA0Ud5 Sceg== X-Gm-Message-State: AOAM533OxEgsVSrNAj4InIVTNCCzIqZ2RR1gXrd1n3pewJCITfpBCq37 6IHlSSWJxuBnin76apvhjpVKpes9VExa921jO4/bHpMRqqOb1Q== X-Google-Smtp-Source: ABdhPJyRHpT47HIFw6RCgfGrLNkWTbjiclXRq/MoHsINReKaW+BNO0DveLjR0WVxLqXaRTxeR/WkrBuXTR5Ctuw1NOk= X-Received: by 2002:a05:6638:1512:b0:32e:d6e7:35bf with SMTP id b18-20020a056638151200b0032ed6e735bfmr8465097jat.34.1653531165487; Wed, 25 May 2022 19:12:45 -0700 (PDT) MIME-Version: 1.0 From: Hayden Shenk Date: Wed, 25 May 2022 22:12:35 -0400 Message-ID: Subject: 28.1; Wrong format specifiers in tramp-adb-get-device To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="000000000000be873a05dfe0b952" Received-SPF: pass client-ip=2607:f8b0:4864:20::d2b; envelope-from=hayden.shenk@zetier.com; helo=mail-io1-xd2b.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, NUMERIC_HTTP_ADDR=1.242, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, WEIRD_PORT=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 26 May 2022 01:21:37 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --000000000000be873a05dfe0b952 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Description: When attempting to open a file on Android devices via tramp using adb over tcp/ip tramp-adb-get-device throws the following error: error: "Format specifier doesn=E2=80=99t match argument typex" Reproducing the bug: To reproduce the bug set up an android device to connect to over TCP/IP with adb. Instructions to do so can be found here: https://developer.android.com/studio/command-line/adb In this example, we'll assume the device is listening for adb connections on 192.168.1.7:7449 Then the bug can be triggered by executing the following bit of elisp: (find-file "/adb:192.168.1.7#7449:/data/local/tmp") Patch: Here is a proposed patch, which fixes the issue on my host: modified 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)) (=3D (length devices) 1)) In GNU Emacs 28.1 (build 2, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw scroll bars) of 2022-05-24 built on papa-XPS-15-9500 Windowing system distributor 'The X.Org Foundation', version 11.0.12013000 System Description: Ubuntu 20.04.4 LTS Configured using: 'configure --with-x-toolkit=3Dlucid --with-mailutils --with-modules --enable-gcc-warnings --with-json --with-native-compilation --with-jpeg --with-png --with-rsvg --with-tiff --with-wide-int --with-imagemagick' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ IMAGEMAGICK JPEG JSON LIBSELINUX MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM LUCID ZLIB Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date subr-x cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo x-toolkit x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 70504 11007) (symbols 48 7157 0) (strings 32 21358 1675) (string-bytes 1 686899) (vectors 16 14101) (vector-slots 8 297090 16970) (floats 8 25 38) (intervals 56 260 0) (buffers 992 11)) --000000000000be873a05dfe0b952 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Description:
When attempting to open a file on Android = devices via tramp using adb
over tcp/ip tramp-adb-get-device throws the = following error:

error: "Format specifier doesn=E2=80=99t match= argument typex"

Reproducing the bug:
To reproduce the bug s= et up an android device to connect to over
TCP/IP with adb.=C2=A0 Instru= ctions to do so can be found here:

https://developer.android.com/studio/comma= nd-line/adb

In this example, we'll assume the device is list= ening for adb
connections on 192.168= .1.7:7449

Then the bug can be triggered by executing the followi= ng bit of elisp:

(find-file "/adb:192.168.1.7#7449:/data/local/= tmp")

Patch:
Here is a proposed patch, which fixes the issue= on my host:

modified =C2=A0 lisp/net/tramp-adb.el
@@ -1112,9 +11= 12,9 @@ E.g. a host name \"192.168.1.1#5555\" returns \"192.168.1.1:5555\"
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 tramp-prefix-port-format ":"
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 (cond ((member host devices) host)
=C2=A0 =C2=A0 =C2=A0 ;= ; This is the case when the host is connected to the default port.
- = =C2=A0 =C2=A0 ((member (format "%s%s%d" host tramp-prefix-port-fo= rmat port)
+ =C2=A0 =C2=A0 ((member (format "%s%s%s" host tra= mp-prefix-port-format port)
=C2=A0 =C2=A0 =C2=A0 =C2=A0devices)
- = =C2=A0 =C2=A0 =C2=A0(format "%s:%d" host port))
+ =C2=A0 =C2= =A0 =C2=A0(format "%s:%s" host port))
=C2=A0 =C2=A0 =C2=A0 ;;= An empty host name shall be mapped as well, when there
=C2=A0 =C2=A0 = =C2=A0 ;; is exactly one entry in `devices'.
=C2=A0 =C2=A0 =C2=A0 (= (and (zerop (length host)) (=3D (length devices) 1))

In GNU Emacs 28= .1 (build 2, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw scro= ll bars)
=C2=A0of 2022-05-24 built on papa-XPS-15-9500
Windowing syst= em distributor 'The X.Org Foundation', version 11.0.12013000
Sys= tem Description: Ubuntu 20.04.4 LTS

Configured using:
=C2=A0'= configure --with-x-toolkit=3Dlucid --with-mailutils --with-modules
=C2= =A0--enable-gcc-warnings --with-json --with-native-compilation --with-jpeg<= br>=C2=A0--with-png --with-rsvg --with-tiff --with-wide-int --with-imagemag= ick'

Configured features:
CAIRO DBUS FREETYPE GIF GLIB GMP GN= UTLS GSETTINGS HARFBUZZ IMAGEMAGICK
JPEG JSON LIBSELINUX MODULES NATIVE_= COMP NOTIFY INOTIFY PDUMPER PNG RSVG
SECCOMP SOUND THREADS TIFF TOOLKIT_= SCROLL_BARS X11 XDBE XIM XPM LUCID
ZLIB

Important settings:
= =C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 value of $XMODIFIERS: @im=3Dib= us
=C2=A0 locale-coding-system: utf-8-unix

Major mode: Lisp Inter= action

Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2=A0 gl= obal-eldoc-mode: t
=C2=A0 eldoc-mode: t
=C2=A0 show-paren-mode: t
= =C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool= -bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t<= br>=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 bl= ink-cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryp= tion-mode: t
=C2=A0 auto-compression-mode: t
=C2=A0 line-number-mode:= t
=C2=A0 indent-tabs-mode: t
=C2=A0 transient-mark-mode: t

Lo= ad-path shadows:
None found.

Features:
(shadow sort mail-extr = emacsbug message rmc puny dired dired-loaddefs
rfc822 mml mml-sec epa de= rived epg rfc6068 epg-config gnus-util rmail
rmail-loaddefs auth-source = cl-seq eieio eieio-core cl-macs
eieio-loaddefs password-cache json map t= ext-property-search seq byte-opt
gv bytecomp byte-compile cconv mm-decod= e mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader= sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils time-= date subr-x cl-loaddefs
cl-lib iso-transl tooltip eldoc paren electric u= niquify ediff-hook
vc-hooks lisp-float-type elisp-mode mwheel term/x-win= x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fring= e
tabulated-list replace newcomment text-mode lisp-mode prog-mode regist= er
page tab-bar menu-bar rfn-eshadow isearch easymenu timer select
sc= roll-bar mouse jit-lock font-lock syntax font-core term/tty-colors
frame= minibuffer cl-generic cham georgian utf-8-lang misc-lang
vietnamese tib= etan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek rom= anian slovak czech european ethiopic indian cyrillic
chinese composite e= moji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help simp= le abbrev obarray cl-preloaded nadvice button
loaddefs faces cus-face ma= croexp files window text-properties overlay
sha1 md5 base64 format env c= ode-pages mule custom widget
hashtable-print-readable backquote threads = dbusbind inotify
dynamic-setting system-font-setting font-render-setting= cairo x-toolkit
x multi-tty make-network-process native-compile emacs)<= br>
Memory information:
((conses 16 70504 11007)
=C2=A0(symbols 48= 7157 0)
=C2=A0(strings 32 21358 1675)
=C2=A0(string-bytes 1 686899)<= br>=C2=A0(vectors 16 14101)
=C2=A0(vector-slots 8 297090 16970)
=C2= =A0(floats 8 25 38)
=C2=A0(intervals 56 260 0)
=C2=A0(buffers 992 11)= )
--000000000000be873a05dfe0b952-- From debbugs-submit-bounces@debbugs.gnu.org Thu May 26 12:14:48 2022 Received: (at 55651-done) by debbugs.gnu.org; 26 May 2022 16:14:48 +0000 Received: from localhost ([127.0.0.1]:59855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuG8O-0002pM-I6 for submit@debbugs.gnu.org; Thu, 26 May 2022 12:14:48 -0400 Received: from mout.gmx.net ([212.227.15.18]:39949) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuG8J-0002p5-LL for 55651-done@debbugs.gnu.org; Thu, 26 May 2022 12:14:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1653581676; bh=QmSh83uL9vu6EQSBdtXdJgcIJ9bqendghQfv8pnZWmM=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=OBcxqsy/9Pbr22Mr7Jf8NJmLWpzRcZ3ocQyE1E+xRJdT2yONt3JiMc5URFMHYmAWn Q3kL1lg5yI4hJTPtmglrpXR3UCHTEF8Igsr+tkKolCgBpaNeuldoz33Jd7ovJU+Z/Y W0HxgiNVprbPHIsVCC8VZFekl9Dk6Mj8xWlXjZ7g= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([213.220.149.14]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MV63g-1oJ2Ev3rmA-00S7FM; Thu, 26 May 2022 18:14:36 +0200 From: Michael Albinus To: Hayden Shenk Subject: Re: bug#55651: 28.1; Wrong format specifiers in tramp-adb-get-device References: Date: Thu, 26 May 2022 18:14:35 +0200 In-Reply-To: (Hayden Shenk's message of "Wed, 25 May 2022 22:12:35 -0400") Message-ID: <878rqoxod0.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:TWXUxlvfsyT2T/h2JyPGjXxyyvjt5Xqy7iDB4qGll8IThaFw3FG Apn5Qz1fVX9+ubwCKN7oeXxbnrhicCQp6cG6MZ4rIF6T3uoAZDekrwNCcYD98lBFRsi83Pe mdTjiyGCwH3kuQCOStOhMn+swis62sFi/kyLsXh2EDWQO1Qf+fVjc8/lIGfK0YdkeiX9/YR 7hXSfI6eVb96wkeFZtJrw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:GKYui055ZYs=:rjsWL6byai/KF4KgCh8WDn 4pYh7ta0CuMLtkeZpjWWdN7A0hhJaXNrcet11kvz0fVzSFEEL1Z3eSHRQIRhVnfZFYA6Gzr5m 18YGyUX7NIhsHiZKp/x7JUKCLF7V6gODA9LeeSJLKP1Yn2hn2OnYeqADDCy4ZRd5igz34VBhw bknYBtjeba/m8lWN/vplmFkiiKKRiDLNzKpZhTs32b8c7lNfZh69oGD+lgcrRn5xOECly1jqe rff6VRgueeZGlP8VnhIgMBg3rN8EuZ1RgSeJpuqkw4TizW5JKs7tkzjnyhi1DTx8fekDo7Oya pTEQjn+18i0iPfIn5wwyJnzH7MPFq5opTs6CESYA8a0vIrJhCbQbrP8LewjV0MhIP2IpLDVHf wHtuZREKX9q2MwfB7Llc5Wf9AnYF5p0wzgehaoXt1v7fr/EUPkagRpzu1LXKMSc5Mcgrz45R6 iLtos262vNIuyGqz690dz1+YiYcZByQg6g2UUqhitLpnbzhTm1FeMellbjON+DXXXpZB2zulx g0JN9rWwQOizHo5OziDZD1vgm9StOkdfa8D02xUNr0uiKGeAiYtamMex/pcHz3+CoH6E+OeWI totugimtL+bXzJBKJF8viWu4N0SIByW4MlCR27g0jOYKeCvliWoziL1z9NNQRnGvL2l9EAzEB YCGt1LDEYbZCk35Yh2/wfbYANsfpA/MnU0nqvNbvkMNNovwtqr9zXBZDt9pxS4C/Kpgu8g174 uhbh775jsh/SfjxK9c8ubYiIGy52IGTSz/wV71+B0gkpjxRJiA1lpgtpwiMxjmLeWV4cShCoX J6Q2t0zNvYRWREM1l/30Q1d7pAC5e4xjNxoHmQcVq3ieao66Y0SO88sn330U/TWa5B91w/yQz OzuqwS9lZykqz7PXvkHSLTfxwjZhsugGUjWqB0KyOqrY8u0LUxsgFYpRk+u3eIvhBlsvhhewU U36mT2kdCtpFzOfv/nVxsj+RUqgCRlStdbYeo6+3KcPtlO4WwAvofMzXcga/x13/ijW79tNRM fHX3sf+atuHYrdvuIy6z/vFzIAxKdq1ZBGlNXkVjxooASeNSMhASOlzLZY5kgOTbYedoW7KSo 2z/xGKKfUrxrNMScIAaD/C4u1J1G7ig+0DtkBAKxdC5ZvyuhD/Lw/qKXQ== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 55651-done Cc: 55651-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Version: 28.2 Hayden Shenk writes: Hi Hayden, > Description: > When attempting to open a file on Android devices via tramp using adb > over tcp/ip tramp-adb-get-device throws the following error: > > error: "Format specifier doesn=E2=80=99t match argument typex" Thanks for reporting! > Reproducing the bug: > To reproduce the bug set up an android device to connect to over > TCP/IP with adb. Instructions to do so can be found here: > > https://developer.android.com/studio/command-line/adb > > In this example, we'll assume the device is listening for adb > connections on 192.168.1.7:7449 > > Then the bug can be triggered by executing the following bit of elisp: > > (find-file "/adb:192.168.1.7#7449:/data/local/tmp") > > Patch: > Here is a proposed patch, which fixes the issue on my host: Yep. tramp-dissect-file-name returns the port as a string for a long time already, it was an oversight that this hasn't been changed here. I've applied the patch in your name to the repositories, will appear with Emacs 28.2. Tramp 2.5.2.5, which will be released next days on GNU ELPA, will contain the patch as well. Closing the bug. Best regards, Michael. From unknown Fri Jun 20 07:15:30 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 24 Jun 2022 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator