lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <d02e47813a9b22b2c625caf8ac5ae0fb@208suo.com>
Date:   Wed, 12 Jul 2023 11:08:32 +0800
From:   shijie001@...suo.com
To:     tglx@...utronix.de, mingo@...hat.com, bp@...en8.de,
        dave.hansen@...ux.intel.com, x86@...nel.org
Cc:     hpa@...or.com, kvm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] KVM: x86:Fix warnings in debugfs.c

The following checkpatch warning is removed:
WARNING: Prefer seq_puts to seq_printf

Signed-off-by: Jie Shi <shijie001@...suo.com>
---
  arch/x86/kvm/debugfs.c | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/x86/kvm/debugfs.c b/arch/x86/kvm/debugfs.c
index ee8c4c3496ed..a3e118397aa3 100644
--- a/arch/x86/kvm/debugfs.c
+++ b/arch/x86/kvm/debugfs.c
@@ -133,20 +133,20 @@ static int kvm_mmu_rmaps_stat_show(struct seq_file 
*m, void *v)
      mutex_unlock(&kvm->slots_lock);

      /* index=0 counts no rmap; index=1 counts 1 rmap */
-    seq_printf(m, "Rmap_Count:\t0\t1\t");
+    seq_puts(m, "Rmap_Count:\t0\t1\t");
      for (i = 2; i < RMAP_LOG_SIZE; i++) {
          j = 1 << (i - 1);
          k = (1 << i) - 1;
          seq_printf(m, "%d-%d\t", j, k);
      }
-    seq_printf(m, "\n");
+    seq_puts(m, "\n");

      for (i = 0; i < KVM_NR_PAGE_SIZES; i++) {
          seq_printf(m, "Level=%s:\t", kvm_lpage_str[i]);
          cur = log[i];
          for (j = 0; j < RMAP_LOG_SIZE; j++)
              seq_printf(m, "%d\t", cur[j]);
-        seq_printf(m, "\n");
+        seq_puts(m, "\n");
      }

      ret = 0;

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ