Received: by 10.223.185.116 with SMTP id b49csp2199705wrg; Sun, 4 Mar 2018 21:20:21 -0800 (PST) X-Google-Smtp-Source: AG47ELvD6C76OnAbiinH71UPaQDrtj3Y8TdVpIRwXhiaH3A1hbeLA9crK/tPsQZKtXcD+70QHMbG X-Received: by 10.99.145.194 with SMTP id l185mr10933591pge.394.1520227221479; Sun, 04 Mar 2018 21:20:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520227221; cv=none; d=google.com; s=arc-20160816; b=vxS1SH3whBuyt82cOw3VcjZSscRZDw3mrmXDhtATl9j6soaJFkGDvDrtSx/ZaXc7xx caXYS0r7VWeWOSNCqZVfs8jWdrZ+HHCzgoPhQBCaH6Fbz4uNt84fdQZUBYTV5+UXvZwO f3Qq+OwcoJbvqIdCxHXXUNHgXTkdwrhdN2UE99EW39s+M7xiKH4t/+3+L5bz3CFCZ87i iOCNd4tG1WWjCFALDvvHk5KbzUAr5b1ixnxZR4XIv5BzGbtvimYzrLv9/QNn8IGMI5Go 7yaJuGAAa1p4inRIealCtHOXCzlhjSqxjfPBNutEMOjBCNZ2a8AJX58JhCaYEDRRoaA2 LJfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:reply-to:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=w+nslwt2GH2mVnaAYeSTpfFSas2hkuIh/FZxTQjzJhY=; b=NK+785TbhBlxSk8Ku1cSxxW17VCgpu9GanzL7UMUonn5bIMckTbSzQKE/IGsUA4q0S f0tfHIZR/nPRQPFGIIhuehdmSldg0zlWmktbHeWaOcksrLbB52wRrP9Di0bivC9P88YQ QLfDLr3kRwWUOzO2LmnivFkc/UzFVTMT0b4OIdJSg4UvucSUGxVgvXdJ/lMNFUWhlb5r KXePLdEvDBlr2b9shsJkNv++YAMRcHesbOBAp41c8yP+ZyELuwxDyKxDIMhTVdUaoaAX D0rBJaWj2VyU/dcnf/x6IiPYF4woAbgHDGrd0SHsTHHKihnwonyzmo2D99Mo0LlucWCk HrLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=exchange.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n8si7959244pgt.427.2018.03.04.21.20.04; Sun, 04 Mar 2018 21:20:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=exchange.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752477AbeCEFSj (ORCPT + 99 others); Mon, 5 Mar 2018 00:18:39 -0500 Received: from a2nlsmtp01-03.prod.iad2.secureserver.net ([198.71.225.37]:36684 "EHLO a2nlsmtp01-03.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751543AbeCEFSe (ORCPT ); Mon, 5 Mar 2018 00:18:34 -0500 Received: from linuxonhyperv2.linuxonhyperv.com ([107.180.71.197]) by : HOSTING RELAY : with SMTP id siVBeODIudOycsiVBemkzF; Sun, 04 Mar 2018 22:17:33 -0700 x-originating-ip: 107.180.71.197 Received: from kys by linuxonhyperv2.linuxonhyperv.com with local (Exim 4.89_1) (envelope-from ) id 1esiVB-00050e-Np; Sun, 04 Mar 2018 22:17:33 -0700 From: kys@exchange.microsoft.com To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, devel@linuxdriverproject.org, olaf@aepfle.de, apw@canonical.com, vkuznets@redhat.com, jasowang@redhat.com, leann.ogasawara@canonical.com, marcelo.cerri@canonical.com, sthemmin@microsoft.com Cc: "K . Y . Srinivasan" Subject: [PATCH V2 09/12] hv_balloon: fix printk loglevel Date: Sun, 4 Mar 2018 22:17:19 -0700 Message-Id: <20180305051722.19157-9-kys@exchange.microsoft.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180305051722.19157-1-kys@exchange.microsoft.com> References: <20180305051539.19079-1-kys@exchange.microsoft.com> <20180305051722.19157-1-kys@exchange.microsoft.com> Reply-To: kys@microsoft.com X-CMAE-Envelope: MS4wfOOgjQbpPLEUACaNnRs532IZZhW10v2/CAvkpP8QMK38D5DC67IgtyT/OHtKlK+5mjKbPeFz3UPXZqLwpfv11xvUugHnytD+cR0gP9X27wKzA7mhHGrQ m6ZNpALEhnzk8IWiK6gUhQ85SB4/jTxJfXfTqqRqeVw9Mf0F2JjLGaW62shtHaoUsf/7QpjU4hbXvpvUk/sGj1uWwUqB5BwmOtTOLKSyfS9F7rgRhbtfgQCF /Gu6eFqmBcTFsWdqbZ999PL8V1PMVgWVkOBkOH8G6vs6Hq0l1PfLNZEgXW2jjIhZ3KE6Z2/PcM9vctkxsicLpTgf8aeyCjmra8E2YF5s8jOYeQ//AiMgyhy9 UjBRuIfhqIH49PJ9hzuqPFJ/mBzKYGT3qvat2Pe6ZQ/bSMo9tivDeAL3qE3mGmJJ60GKOsisjT0X/91AdQWXzGvK473JGzqn/mq0/IU0iyh4tqEuRnbRfsia uqUP5amIMifaisIKT5N2hEuA9cam7Oi8UEC8dXk4FDkgKTDHUC6UPqbnCs0Njka/Y+3jGJ9kQcQWIKllOqhWuJ6NRT7dVo43fBVvZw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vitaly Kuznetsov We have a mix of different ideas of which loglevel should be used. Unify on the following: - pr_info() for normal operation - pr_warn() for 'strange' host behavior - pr_err() for all errors. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_balloon.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c index db0e6652d7ef..1aece72da9ba 100644 --- a/drivers/hv/hv_balloon.c +++ b/drivers/hv/hv_balloon.c @@ -691,7 +691,7 @@ static void hv_mem_hot_add(unsigned long start, unsigned long size, (HA_CHUNK << PAGE_SHIFT)); if (ret) { - pr_warn("hot_add memory failed error is %d\n", ret); + pr_err("hot_add memory failed error is %d\n", ret); if (ret == -EEXIST) { /* * This error indicates that the error @@ -1014,7 +1014,7 @@ static void hot_add_req(struct work_struct *dummy) resp.result = 0; if (!do_hot_add || (resp.page_count == 0)) - pr_info("Memory hot add failed\n"); + pr_err("Memory hot add failed\n"); dm->state = DM_INITIALIZED; resp.hdr.trans_id = atomic_inc_return(&trans_id); @@ -1041,7 +1041,7 @@ static void process_info(struct hv_dynmem_device *dm, struct dm_info_msg *msg) break; default: - pr_info("Received Unknown type: %d\n", info_hdr->type); + pr_warn("Received Unknown type: %d\n", info_hdr->type); } } @@ -1290,7 +1290,7 @@ static void balloon_up(struct work_struct *dummy) /* * Free up the memory we allocatted. */ - pr_info("Balloon response failed\n"); + pr_err("Balloon response failed\n"); for (i = 0; i < bl_resp->range_count; i++) free_balloon_pages(&dm_device, @@ -1421,7 +1421,7 @@ static void cap_resp(struct hv_dynmem_device *dm, struct dm_capabilities_resp_msg *cap_resp) { if (!cap_resp->is_accepted) { - pr_info("Capabilities not accepted by host\n"); + pr_err("Capabilities not accepted by host\n"); dm->state = DM_INIT_ERROR; } complete(&dm->host_event); @@ -1508,7 +1508,7 @@ static void balloon_onchannelcallback(void *context) break; default: - pr_err("Unhandled message: type: %d\n", dm_hdr->type); + pr_warn("Unhandled message: type: %d\n", dm_hdr->type); } } -- 2.15.1