Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2513972rwp; Fri, 14 Jul 2023 07:17:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlHdsD7b+PU3919r+l+6okrQqey6Ex+wJ/jnarjVAHy0H917oXGKfM/1mwOE1ZaJELQbCCLc X-Received: by 2002:a17:902:d484:b0:1b8:b288:6274 with SMTP id c4-20020a170902d48400b001b8b2886274mr4070388plg.18.1689344265551; Fri, 14 Jul 2023 07:17:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689344265; cv=none; d=google.com; s=arc-20160816; b=1ALk+6IZXbJMefdfBCBF1lCT94xnk464icKTfguY/oDx4GOLD+It/V42SQ29naFDTm pCNZw9lz3ArTE5lg57znWMkwsKr1qZXo164Sf7sgAQpCkHhmegrY+H+uZ6JXoViPsrR+ 7DL9gnlzEcHbRIPLhRn1w6elmADQ2sk/2PMyR+02o8aD+Ryh4UFReWf/LzaOFtZXUEnS jg1Kro+LQ8nunQcEaL/SXJ96HIyB/8+6UFySlHBm5KKUcZvmDdrwdpVqsFew6KVs650o bEa5eMtnMkSufu8LvRqLWIHphnr52aw5VbU040NPHZ2+YbZX4R1IpOqHMJDgt5TvpuMc IDIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=2RX/r2ODC8fCu29Ed3cujFRc453JSyfT5sPImsob4JU=; fh=mbGcIcKCI5Qo67Gv+Hlo5RuaWcWPWfPmd5nvhaoNILw=; b=tUJL58MT0JgrVDpLv2O3FQJ8BZf+wFBuXfapMPW21TBQkqKVXosfZoj1qtJmGTRxA0 U9r/nlxC27OljyEeuzehtnLHdin6FqklJ1v7WIfggpJqoy4rjq/psx6ppyhgZK85Itcd z8BWm+D3xn1Fng7k5c0hZcUK1BUusEWSOBrD+esNT/laNHm8UzWc5Gu2jGznhLEi4Ss/ XdOiEiNY/U7fOVWLMbgcIAB0DZ2qBS5mv5CFOo0Bz+rqfAaX+tZ5JPviRpz8uNIjD2OE d8SOwQ2jxhwIOXQsGWOsY5kbyTGHnAg42KCzIW23l5mSe+3t9AlR6YkRD8CrU3iFWWbD e2mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=BwbXGxAd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kv4-20020a17090328c400b001b891de90dbsi7064532plb.72.2023.07.14.07.17.32; Fri, 14 Jul 2023 07:17:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=BwbXGxAd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234757AbjGNOCG (ORCPT + 99 others); Fri, 14 Jul 2023 10:02:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234638AbjGNOCF (ORCPT ); Fri, 14 Jul 2023 10:02:05 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F2431989 for ; Fri, 14 Jul 2023 07:02:04 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-c83284edf0eso1698217276.3 for ; Fri, 14 Jul 2023 07:02:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1689343323; x=1691935323; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=2RX/r2ODC8fCu29Ed3cujFRc453JSyfT5sPImsob4JU=; b=BwbXGxAdGDSa8Hh7hYoUt1tjxNITodRy4Ie5C9Ve5VjqA6Jp+nyRz/A8pfmVILcQ64 waqrj3jD33fIlouxPLj8xVZ7jMJXPFpzZZfFIhJRa14Ko7B0PJ9XRY1ZTwTG/bpqLs6Y BruFqcKyT0EUFnXIdp0TIxtA3LQR0nYcxTlVMiwkz4IRgvYemxzWVSA3T8g404mRVp3+ 3dri6WPbfsCB8AwLXDoA9muP0F2W+o/cAaLBQOFQLs1sYckvS7fBVKqH65bEOBGc7dsw FK3QzCp5BfBLk4FUwZ4FZA1gNaX3R8wrbNX3RrAAV2tNGAFQZlGdMBItHrESM9ihMcph sZHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689343323; x=1691935323; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2RX/r2ODC8fCu29Ed3cujFRc453JSyfT5sPImsob4JU=; b=lAtBpE6CXhK11cK4kbL2qnsXq7tK6nSSKBYmnshGY1cZJNz+0wqf+WcWCuyLdPr5K6 y+nCf/ZEuVX1wQG93hO6eU/KnYjZqh+wyd54TFt0Vlk7KxG13pfiwmZYlO0VEbrkqxFl pv9/3Sm341ICbOKiLIz+ruy4V8zwKrA7WE/4hwtb+zo05LideqtWfgQN0Rw9mFuimsPR AYttU/K0o/apHj8SBM3f4pNeDrY96p/iQU6F2Gpml3i+4DkcHbJ5nxHkVevjMszHAv8d tFswlU3FoVguUXRxy691UFvBUpugHv2SQOPuJ+2FFezPsokNpZRlGn7H6qbScvw29lCh 0q3Q== X-Gm-Message-State: ABy/qLamAojypK6U2srBHCHAgKAfcL9jSH0/+ixmHF/Tri9iNpsXb7Xs c2Hfxu40B46gJH0ZBAcbAI4cKz4f16GUflg= X-Received: from aliceryhl.c.googlers.com ([fda3:e722:ac3:cc00:31:98fb:c0a8:6c8]) (user=aliceryhl job=sendgmr) by 2002:a25:d8d6:0:b0:c62:d787:3acc with SMTP id p205-20020a25d8d6000000b00c62d7873accmr25193ybg.2.1689343323690; Fri, 14 Jul 2023 07:02:03 -0700 (PDT) Date: Fri, 14 Jul 2023 14:02:01 +0000 In-Reply-To: Mime-Version: 1.0 References: X-Mailer: git-send-email 2.41.0.255.g8b1d071c50-goog Message-ID: <20230714140201.383439-1-aliceryhl@google.com> Subject: Re: [PATCH] rust: kernel: str: Implement Debug for CString From: Alice Ryhl To: ariel.miculas@gmail.com Cc: alex.gaynor@gmail.com, asahi@lists.linux.dev, benno.lossin@proton.me, bjorn3_gh@protonmail.com, boqun.feng@gmail.com, gary@garyguo.net, lina@asahilina.net, linux-kernel@vger.kernel.org, ojeda@kernel.org, rust-for-linux@vger.kernel.org, wedsonaf@gmail.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Asahi Lina writes: > On 14/07/2023 18.48, Alice Ryhl wrote: >> Asahi Lina writes: >>> Trivial implementation. >>> >>> Signed-off-by: Asahi Lina >> >> The commit message is a bit short, but the change itself looks fine. >> >> Reviewed-by: Alice Ryhl > > It's so trivial I just didn't know what else to write... suggestions > welcome (for this or next time I have a patch like this) ^^ > > ~ Lina Adding some sort of motivation usually works quite well, e.g.: Make it possible to use a CString with the `pr_*` macros directly, that is, instead of pr_debug!("trying to open {:?}\n", &*filename); we can now write pr_debug!("trying to open {:?}\n", filename); Alice