From nobody Wed Jul 6 11:04:12 2022 X-Original-To: dev-commits-src-branches@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 10A751D0105C; Wed, 6 Jul 2022 11:04:14 +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 4LdGrX26GHz3Nbk; Wed, 6 Jul 2022 11:04:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657105453; 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=7PCAUE2Ul7+DSNnlyHJVkY9ulfHO9oCQRCp3FMxN9f8=; b=M1/DWAL1SKuqviXJHek9gkh2QQDMDDkfsrvhvG+DF2PV2UE1z/3VgZXLaBgl46mZWEEUNC SsaOTKvas3I3M747gqR22TEBTqNPv/pSGMha8JcELA8XAeOy6bv3TWDeAowgEvvvwS1cVc CpjyS5HL+KJ6pnky5A4Db2yqSLK9cUDCUp9iekZ06NncUqjCYWVYBlwnPwO4VzhzSZWKUi Fc9RqiRyBZUNWePk6feaZj+WEV9z1FkS64VSrA0UaildEXGxVhwCsEyf5hv7YuP5PFp/S6 s1ykrsq7LQRNVz1lFVb0G2VmfcEFQkQ1l76MU2nEyG5imyenExnfaB7zWYMJTg== 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 29652191E7; Wed, 6 Jul 2022 11:04:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 266B4CGB096676; Wed, 6 Jul 2022 11:04:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 266B4Cvs096675; Wed, 6 Jul 2022 11:04:12 GMT (envelope-from git) Date: Wed, 6 Jul 2022 11:04:12 GMT Message-Id: <202207061104.266B4Cvs096675@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dmitry Chagin Subject: git: b330e6384657 - stable/13 - kdump: For future use made decode_filemode() public List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dchagin X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: b330e6384657cba2aee4e0da991ef0a8017dcd97 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657105452; 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=7PCAUE2Ul7+DSNnlyHJVkY9ulfHO9oCQRCp3FMxN9f8=; b=cqXx2yXuc+0GQjLUt51e3bAS0HLvzG+l0XYXRrK8OZc2X14/+AryolELO0UDINANVyBLx6 M3uGPX5uMe3qGnvXXVRgLn8cKI0QnWbeGvP0vfEcklbG9FS3XDaL2m+t/h/yp26bnhZ8G+ 00cILdM0ArRyMNcuvuRGXqwULO6VsB2ETMHKcBcgpzpFFRf0cqQnZpr2ppYoKCC9XycoMx AOc7kaaX0eKy5HgIDkreugNMqW3VNj7MjWACkAz/KQnOW5OyO46cP+NrphsHEJntv3W3yB 3qPRsa3gb/Wmkv8JM2h3i3FayHziNjqveVy+/+G6rVcgrfk9hwx+JIWbnRNeBw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657105452; a=rsa-sha256; cv=none; b=X2qo1oO/8n1xWtNFlYpX0LwHWrayCVY9djJf+upN4q3m0RXhQgWCofoNnh2btSVyOf7mkT MaUOyAqaJb3EOgrq/OcewJff9XolcucWrwHK8rkbk5tCID2dTw/byKUpY1iZXLKwCperR6 3po3yyk0gGBRTDf3GEJM8q3Uch0klWTZFpAXoatU/a/IHMKhjw2Y8S5ZNOf7PYoZ0JutY2 knqLK8hiPQTx/cQR5wlMmPrQ9JCeNpHjuKjwtCaohZRp1l3Zf3fC4MH1SEXjjI+UO8A4kp i8LBA2kf2V/rSfhZECT6JSOXTciXKelv6a1hTC01nK7qZ319FpRAIDRzRSicHA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=b330e6384657cba2aee4e0da991ef0a8017dcd97 commit b330e6384657cba2aee4e0da991ef0a8017dcd97 Author: Dmitry Chagin AuthorDate: 2022-06-22 11:26:50 +0000 Commit: Dmitry Chagin CommitDate: 2022-07-06 11:02:15 +0000 kdump: For future use made decode_filemode() public MFC after: 2 weeks (cherry picked from commit ed2f123a217ff23800e97dde9801b6732310c57c) --- usr.bin/kdump/kdump.c | 2 +- usr.bin/kdump/kdump.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c index 30747909d002..1fab27d2d11e 100644 --- a/usr.bin/kdump/kdump.c +++ b/usr.bin/kdump/kdump.c @@ -284,7 +284,7 @@ decode_fileflags(fflags_t value) printf("%u", rem); } -static void +void decode_filemode(int value) { bool invalid; diff --git a/usr.bin/kdump/kdump.h b/usr.bin/kdump/kdump.h index 29bdb1dfbbaf..f5b9b85f9779 100644 --- a/usr.bin/kdump/kdump.h +++ b/usr.bin/kdump/kdump.h @@ -65,6 +65,7 @@ extern bool decimal, fancy, resolv; c = ','; \ } while (0) +void decode_filemode(int value); void print_integer_arg(const char *(*decoder)(int), int value); void print_integer_arg_valid(const char *(*decoder)(int), int value); void print_mask_arg(bool (*decoder)(FILE *, int, int *), int value);