Le 29/04/2025 à 18:38, Colin Ian King a écrit :
There is an extraneous space after a \n in a printk statement.
Remove it.

Signed-off-by: Colin Ian King <[email protected]>
---
  drivers/char/tpm/eventlog/tpm1.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/char/tpm/eventlog/tpm1.c b/drivers/char/tpm/eventlog/tpm1.c
index 12ee42a31c71..566f4df58d48 100644
--- a/drivers/char/tpm/eventlog/tpm1.c
+++ b/drivers/char/tpm/eventlog/tpm1.c
@@ -258,7 +258,7 @@ static int tpm1_ascii_bios_measurements_show(struct 
seq_file *m, void *v)
eventname = kmalloc(MAX_TEXT_EVENT, GFP_KERNEL);
        if (!eventname) {
-               printk(KERN_ERR "%s: ERROR - No Memory for event name\n ",
+               printk(KERN_ERR "%s: ERROR - No Memory for event name\n",
                       __func__);
                return -EFAULT;
        }

Hi,,

kmalloc() is already verbose, so I think that the whole printk() could be removed.

CJ

Reply via email to