From nobody Wed Apr 03 18:14:26 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4V8tDy23xHz5FYHY; Wed, 3 Apr 2024 18:14:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V8tDy1X5vz4769; Wed, 3 Apr 2024 18:14:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712168066; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XJ0RssIQFDhPEqYwmDE8YIo1+YEgQpprj+HkZmfkfJE=; b=FfBfZMeHF7oQhHq/aURqa+hIe0Tm/0pDJmLL7LQz//kwFMSt+P2D7ESzeI0wCTW8dcIvw1 Xtht3ydhaxCHaQXPCk9LGdNlBoFuPSX8JnmZR7Z6f4Ww9Y/114oDqGvQ/E+16hYmUTFGgM 8VHEdsKGb9CSkcQABRbb0pKt00+rdpJTyZU4cpcItjhA0LYumY8tvribm0OKfp96eZX/1F 6MW4lZxC/fhWwmvQHutpiogjDwffms0hx8euRwa29NHkv8cPSaL2iZCUF0uW+hz34jo2au zhDNDy3zTXmLHgJNpn1YZtUoHyYzlRriUoCqW8He64W1T4/PuZ8UfnhB7kn86A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712168066; a=rsa-sha256; cv=none; b=yXH3WCE8EhViSv8j1qKqhDIEBJjrDUXAlJL1bW9ursfKEiHVcd1wQN+6mhzzI0GFaMlKKS pj4jvgAv30S3Py/TMLPkpsVvrpiqyYqERxwENnSwJEATyoWe8ktou/aTF1bygKjVXKXRaC vHEDKaCXb5YzrKvFeR0z16/FryOrCdIbX5xZLQNxVXuTHpekX/V9LQa3RANS4p0w5NbaFy 90QsRwqgG+QWj8I3eKriKtKcWsTVZyIDeX8kj7e2XrbOIPI4/pLgpf3/L+rhcQSfQAii02 5S4PY0gAP3JUiCRvAfslkXjkIzLKLJZRA5U1JfZKHjaURuSlIiTZ/vMNRdYn0Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712168066; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XJ0RssIQFDhPEqYwmDE8YIo1+YEgQpprj+HkZmfkfJE=; b=AknJDbSl/JvErgu2KDdxTv9/sBzAfEUDpZ5cdxD1PcXpZY/SjaTNopkGx+lVcy1K0FcVXo PwKSuR4RCNBjwA3JOlmIXDIFR3opBaYP5LmoJez3lhzw8QY2YXeweUJaLlYo5HTIA4ra/d 2Qy7kdKsoBbCFw57dllLbkpVZYa5LcCFGr/snRyxJKdI5dW0MDonTbPEM/HGdDpUDCsl34 VQGMFL6gybI74KgKcG0HB46DOb44ag134Ob8hjwfP93G/Kg7Qa0fciVFAEtywtNlHGMoIW JovKZZi8VxiUoQFWoFFHS67/N21juprj0aR0vciXWHHVmwMNQLnOnattP+UVoQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4V8tDy14KNzjtl; Wed, 3 Apr 2024 18:14:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 433IEQHe000444; Wed, 3 Apr 2024 18:14:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 433IEQhD000441; Wed, 3 Apr 2024 18:14:26 GMT (envelope-from git) Date: Wed, 3 Apr 2024 18:14:26 GMT Message-Id: <202404031814.433IEQhD000441@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: d627293f03c1 - main - ddb: Fix format string errors in db_pprint.c List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d627293f03c1b5908adc440f2008c02662b94cd5 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=d627293f03c1b5908adc440f2008c02662b94cd5 commit d627293f03c1b5908adc440f2008c02662b94cd5 Author: Mark Johnston AuthorDate: 2024-04-03 18:12:45 +0000 Commit: Mark Johnston CommitDate: 2024-04-03 18:14:13 +0000 ddb: Fix format string errors in db_pprint.c Reported by: bapt Fixes: aada453dcbaa ("ddb: Properly pretty-print non-labeled enum values") --- sys/ddb/db_pprint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/ddb/db_pprint.c b/sys/ddb/db_pprint.c index 8e6759a03220..10334ce650c8 100644 --- a/sys/ddb/db_pprint.c +++ b/sys/ddb/db_pprint.c @@ -226,13 +226,13 @@ db_pprint_enum(db_addr_t addr, struct ctf_type_v3 *type, u_int depth) if (val == ep->cte_value) { valname = db_ctf_stroff_to_str(&sym_data, ep->cte_name); if (valname != NULL) { - db_printf("%s (0x%lx)", valname, val); + db_printf("%s (0x%lx)", valname, (long)val); break; } } } if (ep == endp) - db_printf("0x%lx", val); + db_printf("0x%lx", (long)val); } /*