[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 2/3] x86/APIC: modify error_interrupt() to output using single printk()


  • To: Elliott Mitchell <ehem+xen@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 14 Jul 2023 08:51:48 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PtMzgE20PQLWoqCkkdtvNnvCCaNzYzyeTwbepSPpx3k=; b=b+E35pF8AxDw2+/OOZ4Iy2W6V7WR5Cy/cMSQwDhnfMzOuoYvQQgVKyHPl4EtZK2eDb2ykdMKRGEMEMUzmlkw9boN44TnMjjkiRXcjN6MalOx/oEgls1OvnJzdOhIGCBJucDi8zCfuY/NBV4iCBPSlKc2yN72KSfjcSD+a3TI91vW3FGRfg94AA2GK+cTX6eyq/Kwz3tBA9WFgqHZRdlVm2iIBQpQH2UGSTOHdjAo453/qfMcHDPBtFZaDiTaAaDOWlubl7dkMyc4MCBgEB7fw+pWJUzFm64PLd/5YDkyr8q5DbQHsIkLu6dutbzGgOfDUAk38lP3HoEd7iXhXSXH4w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aVDP3nPy7dRKsYRhVdkNoeLRh8AHGCxGavHbBBgH1BpbLvZRkwBsLRypDTc4LM5tOIXkJKgRAeFT5mkvCvnf3gY9w+VPbyKM2u9jPkbYXSeGKqFNm1AlDHR2LvHNHMEkdJjGf7fO/PB6fIVIB7M2YNnEt1nj1XN1lV/ymO+ghvCAexHN0nUxE9iadsC/9ordYIcuh1SpNO7LtLqzOFIVBzoh73DICa5o4u9+KSEWAa3d2NqhcxQnCChFwLR9x1U0tV+0BaMFl3/I9ij1FEL02iYZVRDUDCveZG2EqLbKxfxkuuPsdMvLi9fK33Jz7MFf2jkIX/eZBhpMvTZBwWnjyA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Fri, 14 Jul 2023 06:52:09 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 13.07.2023 18:47, Elliott Mitchell wrote:
> On Thu, Jul 13, 2023 at 03:12:55PM +0200, Jan Beulich wrote:
>> On 17.03.2023 20:53, Elliott Mitchell wrote:
>>> --- a/xen/arch/x86/apic.c
>>> +++ b/xen/arch/x86/apic.c
>>> @@ -1419,12 +1420,13 @@ static void cf_check error_interrupt(struct 
>>> cpu_user_regs *regs)
>>>      v1 = apic_read(APIC_ESR);
>>>      ack_APIC_irq();
>>>  
>>> -    printk(XENLOG_DEBUG "APIC error on CPU%u: %02x(%02x)",
>>> -            smp_processor_id(), v , v1);
>>>      for ( i = 7; i >= 0; --i )
>>> -        if ( v1 & (1 << i) )
>>> -            printk("%s", esr_fields[i]);
>>> -    printk("\n");
>>> +        entries[i] = v1 & (1 << i) ? esr_fields[i] : "";
>>> +    printk(XENLOG_DEBUG "APIC error on CPU%u: %02x(%02x)"
>>> +        "%s%s%s%s%s%s%s%s" "\n",
>>> +        smp_processor_id(), v , v1,
>>> +        entries[7], entries[6],
>>> +        entries[5], entries[4], entries[3], entries[2], entries[1], 
>>> entries[0]);
>>
>> While pre-existing in both cases, two nits: There's a stray blank before one
>> of the commas, and indentation is wrong too.
> 
> I don't see anything which could be called an indentation error.  The
> very first added line is attached to the `for ()`, therefore it correctly
> has one more indent.

It's the printk() invocation, where all continued lines lacked another 3
blanks.

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.