Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2263178pxj; Sun, 16 May 2021 20:30:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRkURPaG40ZapTD8kI4xhtt8sXQZspf7Huj7pzVW5sjMaH8UatRCVm2Ec/bPIYcT/0Xz52 X-Received: by 2002:a17:906:2ec6:: with SMTP id s6mr36083262eji.65.1621222222472; Sun, 16 May 2021 20:30:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621222222; cv=none; d=google.com; s=arc-20160816; b=tBR+ryyweVS/EzO3s843nrBZ6MJGbmOhKdC0jTo1++2ww3mZhos3175r+8luAU4Psv IZDETFDjqDOAJUrne8kU9thmKPoyAAHUFaB9L+yIbkc/5toSsXpON0z8sTVlPHHGbuUP ylVjulZglh5atem8YgzjFc7svtvPXWwBHm36u1uFhpR1R/hUpLdEydS0sZK8HyOOJZK8 6G0nGgrqMX30dYrckcc6dXK0sw6V0ZdoaTYjZgtk1xZxGOnb7IulvnUJCbSSVA+eOgTa Ld1xiPR5rKk0/mINE0igVI8Pv2yPVRwAkgwVYo+QYpYQRFLFktqBlqY0P1KSnIc5aHJe C3DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=xhEIlmB/DZ94xhTiAYOoO+904PdKgr4B7T1+97xGGCA=; b=I9SyLDUN5szHjrbkRIX2fxzs0sTuMCfXZ6pFNAdi9voi0ERc8hGZh5iPOH904mCpV+ nH6aWcHQVhZlq4EeRJkfZb+M1oQ4kqGvMdVVsCa8pIA0K5+HVDu2SOCJez4ljkqCfodf g0KlpBMi9uB7CdK41qx3ZzXn1+/PcLqJvpVUYvOhDtK/vA7DJKn69OttwohFEWgskn7K /SX6apv1K2hGESK7s2dDYwhsgonx5qPZhzIdo/cfacxi2ZD9Lj1Xr6vADbKJOiE9eLv0 kLFZPGsfE0oOShFmjhjr1/LruwLvxpNmiGM5mxP76KkzoMdQXbacBlxBBpkpEIsmL6Q6 6Otg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bm2si5226637edb.202.2021.05.16.20.29.59; Sun, 16 May 2021 20:30:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232059AbhEQCXL (ORCPT + 99 others); Sun, 16 May 2021 22:23:11 -0400 Received: from mail.loongson.cn ([114.242.206.163]:40966 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230147AbhEQCXI (ORCPT ); Sun, 16 May 2021 22:23:08 -0400 Received: from linux.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9DxP+4k06FgP_cXAA--.20760S3; Mon, 17 May 2021 10:21:27 +0800 (CST) From: Tiezhu Yang To: Jonathan Corbet , Marc Koderer , Masami Hiramatsu , Mauro Carvalho Chehab , Christian Brauner , Jisheng Zhang , Mathieu Desnoyers , Ananth N Mavinakayanahalli , Andrew Morton , Randy Dunlap , Martin Schwidefsky , Johannes Thumshirn , Heiko Carstens , Joe Perches Cc: linux-kernel@vger.kernel.org, Xuefeng Li Subject: [PATCH v4 1/2] samples/kprobes: Fix typo in handler_fault() Date: Mon, 17 May 2021 10:21:22 +0800 Message-Id: <1621218083-23519-2-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1621218083-23519-1-git-send-email-yangtiezhu@loongson.cn> References: <1621218083-23519-1-git-send-email-yangtiezhu@loongson.cn> X-CM-TRANSID: AQAAf9DxP+4k06FgP_cXAA--.20760S3 X-Coremail-Antispam: 1UD129KBjvdXoWrtFWxCw18JFW7KFWfKw18AFb_yoWDJFcEya s7t34DWw45JFya9FyUKr4rJFnFqr1xWa1xGw4xXr1qyas3Xay7CF4vkrnrGw4fX398GFyU trsrXry7Zr4rWjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbyAFF20E14v26rWj6s0DM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28IrcIa0xkI8VA2jI8067AKxVWUGwA2048vs2IY02 0Ec7CjxVAFwI0_Gr0_Xr1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xv wVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8Jr0_Cr1UM2 8EF7xvwVC2z280aVAFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Cr1j6rxd M2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjx v20xvE14v26r126r1DMcIj6I8E87Iv67AKxVW8JVWxJwAm72CE4IkC6x0Yz7v_Jr0_Gr1l F7xvr2IYc2Ij64vIr41lF7I21c0EjII2zVCS5cI20VAGYxC7M4IIrI8v6xkF7I0E8cxan2 IY04v7MxkIecxEwVAFwVW8JwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8 JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1V AFwI0_GFv_WrylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xII jxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4 A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU 0xZFpf9x0JU5Ma5UUUUU= X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix a defective format in handler_fault() ending with an 'n' that should be '\n'. Fixes: 804defea1c02 ("Kprobes: move kprobe examples to samples/") Suggested-by: Joe Perches Signed-off-by: Tiezhu Yang --- samples/kprobes/kprobe_example.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/kprobes/kprobe_example.c b/samples/kprobes/kprobe_example.c index c495664..d77a546 100644 --- a/samples/kprobes/kprobe_example.c +++ b/samples/kprobes/kprobe_example.c @@ -101,7 +101,7 @@ static void __kprobes handler_post(struct kprobe *p, struct pt_regs *regs, */ static int handler_fault(struct kprobe *p, struct pt_regs *regs, int trapnr) { - pr_info("fault_handler: p->addr = 0x%p, trap #%dn", p->addr, trapnr); + pr_info("fault_handler: p->addr = 0x%p, trap #%d\n", p->addr, trapnr); /* Return 0 because we don't handle the fault. */ return 0; } -- 2.1.0