Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2393395pxj; Mon, 17 May 2021 00:07:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxj0Mg2pj4mV7+wZnRkci92Om+MUSLce7zzet603SyNmlHg8PyzWvhFNVK0/S1BJ3rDUIWv X-Received: by 2002:a5e:9b06:: with SMTP id j6mr42375220iok.117.1621235242626; Mon, 17 May 2021 00:07:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621235242; cv=none; d=google.com; s=arc-20160816; b=KK5bAUzrChy6Qzw5IZc9lrVYIhBR185ksLfsHaOUzSjdyHhbomxL019rBNdl0jT/BR RKNkjwt4lxKxnwKjPUP91SHMmDn6BfM4hzZ5D5RDRbxSPNd+dAnQZg1pWc88+s9zDjtw pXb7xq0Mygn8EU2dY9UuUX2xRYQJq0TopyYwGr1kUwAdll2gnvsWaZCt78YcFh8IIEah C/ghV4wS0zGXH8ZdKDN6SRraXIJuQGdtgKS9SOq+m3j9gjNeUk+ZjRoKndsnkZhVaWaZ fkv2QRuV8XW2Nxvp4rR3k1ZDU3Tg/G7/VjWh7Fnti3/9HiwnaDMlcNH6h/+1GlWEfk4q AqEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=PUKmOCMHnizPGXrdbDscr/GBAf4wQhBuiBKj9H6Tbtc=; b=bPS7Yx3euuDnF7L3dvsYqtuJexJ8J82xUZ6lzkKJvjyLHJdu3BBTXrnGjzQdUqC+Bx Q65YxqwzxtlBD6uaEaE+1y+TQpu86oNKtJm5yK7Z7qNH7JG5DH71TfMqKQ1Qz9H9aaCM SJG6gGVsjOArj0bSurNTq7/iyaQHJK+jMQfAfYFhoWuvaG8ySt9zkoJd0JNDuUyvEbwV CvXKoegH9N9Pwec9hod+6xoibiaB2F3P3DtjMvd9eo4R7JlNp7m/bnDOO4yBjmGvBKJo YIhfJLIMKukaC2NHOnxArFbxBHovQ3zWQDhD6D2TTwIHryksnnroWZGZL/2q0YUE4moh JBzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jersN3pW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v3si16946987ilq.36.2021.05.17.00.07.10; Mon, 17 May 2021 00:07: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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jersN3pW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234500AbhEQFsB (ORCPT + 99 others); Mon, 17 May 2021 01:48:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:54578 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234022AbhEQFrV (ORCPT ); Mon, 17 May 2021 01:47:21 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D055B60FF2; Mon, 17 May 2021 05:46:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621230366; bh=sHqI5E4R9RuDi2UyrLnJMV0/aoan7XflDkfAwyccFFQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=jersN3pWm+89QDeMW6whzaL6p/ALq9yKj948jiDHMjwB3xaLl9/E+8h25c8ZnI9rt wnPsgAB5s3ZPKMsJeQg82BG6Ztnw2UVhJ2zKEktl3kbw2FimF6ObEYxdsB+t/Hg7AQ Zf1alv9xTI3TcIsR8sAMjVPxQjR05aXW5H/OLvfIpXXM6Tzpt8emseGyivQqOQRlHM H6DG6wm0uQNRJIR7NlXdY6RsWq1fArjckzUdmVCaO6C7OY+x9Drh/H9dX60vkEXMSn 8bicLWwp+jQ/Lw6mlVNGlmBz883vBkpKpJx1nMea9ZRyneCCBrHwE/G+OBa7vHuGvU a5IZJBt8YGBkg== Date: Mon, 17 May 2021 14:46:00 +0900 From: Masami Hiramatsu To: Tiezhu Yang Cc: Jonathan Corbet , Marc Koderer , Mauro Carvalho Chehab , Christian Brauner , Jisheng Zhang , Mathieu Desnoyers , Ananth N Mavinakayanahalli , Andrew Morton , Randy Dunlap , Martin Schwidefsky , Johannes Thumshirn , Heiko Carstens , Joe Perches , linux-kernel@vger.kernel.org, Xuefeng Li Subject: Re: [PATCH v4 1/2] samples/kprobes: Fix typo in handler_fault() Message-Id: <20210517144600.8735f8eacc52b0a579085067@kernel.org> In-Reply-To: <1621218083-23519-2-git-send-email-yangtiezhu@loongson.cn> References: <1621218083-23519-1-git-send-email-yangtiezhu@loongson.cn> <1621218083-23519-2-git-send-email-yangtiezhu@loongson.cn> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 17 May 2021 10:21:22 +0800 Tiezhu Yang wrote: > 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 Looks good to me. Acked-by: Masami Hiramatsu Thank you! > --- > 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 > -- Masami Hiramatsu