From nobody Tue Oct 08 19:40:29 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 4XNRFT40cWz5YK5T; Tue, 08 Oct 2024 19:40:29 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XNRFT3SFQz4LpN; Tue, 8 Oct 2024 19:40:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728416429; 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=9D1gzoJoCuKC3wcvYMdhGUx8NIwUNi0sladC7C9v0nA=; b=jFeEHZo5ovjhIS47A04wY2CVDBYbCGZWBz/4DpyKt4TpJo/mzUrjld0VDcjHQHpSjYAQ5c MkJS/CSdFsIWdPboVi/+W4begaJlYts5rM9/bJ7iwo9+re7+ztKtVkm8KAHW0YPX5kQCww xtMlZtXsNhkRva7sOJrolqThgrEjwike8qdHij7T8X0WqPtmSEslcAgJczba3SsGLtM9MZ Az6VYDGMc2t4ymROPA0N5OFSZzR9arzGKFc7zWCM/JH39iPOM13Jwr2lTe86LqmGvDrdTW ejLwXL4KgCUjPsYoURKlFE2hqJzIZLX/vOG91TP7Rm4YoP9HmQ/oZ8N+ZJLTew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728416429; 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=9D1gzoJoCuKC3wcvYMdhGUx8NIwUNi0sladC7C9v0nA=; b=DwaqXzH2oXoCLDxiyXHY4KiEvKlpyMuT01jP/cjpfYM0mS9WWguowNrP6/HDlTPJGF7QKR 8t/6wDPiTbih3xGGBFGqr47Sv4Yni4pjLzcTaizb1wXZZ7UfDrrm/xS3MbeWBzMmQd4FPU q2PQzjxPHhl9TN2+9WjOBNyA948UpdLdR1kR3SO6y/vXmZFbDCWNTRgOwCqUDHP1ERXBgD CdreWQQCEyDO1ilc1m9onO9xNQwbAiqdlvyaAC+070jVsb0nbiaR+oVz2SaABZzea7PwIz 3qIVeQl/br1gmx+LyM57pfsNFiAZ1NZRGKjuPv3LTPQJNWodZ7ZnbeLMTOJwzQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728416429; a=rsa-sha256; cv=none; b=CQeU7jmhQokDlwjMXVWCnci0dvlFlXjgJhspeUVDfILq6ERNdtMwu8pqX+ZPCCouw4wEmv QQdwdDf+G4l599Irl5p9xCKDLS9jIhz4AC+rqQEFOwObwZWhAcYGycF05KlmSqm1jm6tvA L5zM93VbjnJmEcqh0az6bDjUfLZH0o7VFIiPSo5tw990+04JRPBhrlZ+99WP2p8lLv49Wd 19KMA8OcmGjbB0AbZAjJWQ/nHFYZdZME0Th3DjTW7c3V7GEh4HHxB7JD1jKS276hA7VzhJ Yx/g/lslvxlyNbUd8NuyX3JcKRKyypiIuu+oW9G+8VvKO9wfkSL/jesb70nW6w== 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 4XNRFT2wjnzjDQ; Tue, 8 Oct 2024 19:40:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 498JeTJd035853; Tue, 8 Oct 2024 19:40:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 498JeTaM035850; Tue, 8 Oct 2024 19:40:29 GMT (envelope-from git) Date: Tue, 8 Oct 2024 19:40:29 GMT Message-Id: <202410081940.498JeTaM035850@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ka Ho Ng Subject: git: 6df3a2d1bfed - main - Revert "libkldelf: use warnx instead of printf" 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: khng X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6df3a2d1bfed791a29fcd403d525f46112235b89 Auto-Submitted: auto-generated The branch main has been updated by khng: URL: https://cgit.FreeBSD.org/src/commit/?id=6df3a2d1bfed791a29fcd403d525f46112235b89 commit 6df3a2d1bfed791a29fcd403d525f46112235b89 Author: Ka Ho Ng AuthorDate: 2024-10-08 19:39:36 +0000 Commit: Ka Ho Ng CommitDate: 2024-10-08 19:39:36 +0000 Revert "libkldelf: use warnx instead of printf" This reverts commit 550ee2d03c5b88bc5d74b257ffcb3ed2c06a60bb. --- lib/libkldelf/ef_obj.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/libkldelf/ef_obj.c b/lib/libkldelf/ef_obj.c index 30e0d7886995..32a7c17127ed 100644 --- a/lib/libkldelf/ef_obj.c +++ b/lib/libkldelf/ef_obj.c @@ -345,20 +345,20 @@ ef_obj_open(struct elf_file *efile, int verbose) if ((ef->nprogtab != 0 && ef->progtab == NULL) || (ef->nrel != 0 && ef->reltab == NULL) || (ef->nrela != 0 && ef->relatab == NULL)) { - warnx("malloc failed"); + printf("malloc failed\n"); error = ENOMEM; goto out; } if (elf_read_symbols(efile, symtabindex, &ef->ddbsymcnt, &ef->ddbsymtab) != 0) { - warnx("elf_read_symbols failed"); + printf("elf_read_symbols failed\n"); goto out; } if (elf_read_string_table(efile, &shdr[symstrindex], &ef->ddbstrcnt, &ef->ddbstrtab) != 0) { - warnx("elf_read_string_table failed"); + printf("elf_read_string_table failed\n"); goto out; } @@ -367,7 +367,7 @@ ef_obj_open(struct elf_file *efile, int verbose) shdr[hdr->e_shstrndx].sh_type == SHT_STRTAB) { if (elf_read_string_table(efile, &shdr[hdr->e_shstrndx], &ef->shstrcnt, &ef->shstrtab) != 0) { - warnx("elf_read_string_table failed"); + printf("elf_read_string_table failed\n"); goto out; } } @@ -413,7 +413,7 @@ ef_obj_open(struct elf_file *efile, int verbose) ef->reltab[rl].sec = shdr[i].sh_info; if (elf_read_rel(efile, i, &ef->reltab[rl].nrel, &ef->reltab[rl].rel) != 0) { - warnx("elf_read_rel failed"); + printf("elf_read_rel failed\n"); goto out; } rl++; @@ -422,7 +422,7 @@ ef_obj_open(struct elf_file *efile, int verbose) ef->relatab[ra].sec = shdr[i].sh_info; if (elf_read_rela(efile, i, &ef->relatab[ra].nrela, &ef->relatab[ra].rela) != 0) { - warnx("elf_read_rela failed"); + printf("elf_read_rela failed\n"); goto out; } ra++;