All of lore.kernel.org
 help / color / mirror / Atom feed
From: Juergen Gross <jgross@suse.com>
To: Viktor Mitin <viktor.mitin.19@gmail.com>,
	Jan Beulich <JBeulich@suse.com>
Cc: Artem Mygaiev <Artem_Mygaiev@epam.com>,
	Lars Kurth <lars.kurth@citrix.com>,
	Iurii Artemenko <Iurii_Artemenko@epam.com>, Wei Liu <wl@xen.org>,
	Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
	George Dunlap <George.Dunlap@eu.citrix.com>,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	Ian Jackson <ian.jackson@eu.citrix.com>, Tim Deegan <tim@xen.org>,
	Julien Grall <julien.grall@arm.com>,
	Stefano Stabellini <sstabellini@kernel.org>,
	Tamas K Lengyel <tamas@tklengyel.com>,
	Xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: [Xen-devel] [RFC] xen: Add .astylerc for automated style-formatting
Date: Thu, 1 Aug 2019 14:50:07 +0200	[thread overview]
Message-ID: <d85e76b5-0a68-af0a-375c-7f3844e6e21f@suse.com> (raw)
In-Reply-To: <CAOcoXZb8SYbLryapgNmnL3w7oAkyJZtdzM0jRgsvMA=5qtysNQ@mail.gmail.com>

On 01.08.19 14:16, Viktor Mitin wrote:
> On Thu, Aug 1, 2019 at 10:40 AM Jan Beulich <JBeulich@suse.com> wrote:
>>
>> On 31.07.2019 18:20, Viktor Mitin wrote:
>>> How all those projects live without this issue?
>>
>> Perhaps they don't care? I do.
>>
>>> What is the reason not to fix 'diff -p'? Is it not possible at all?
>>
>> I have no idea, but I guess there's a reason for its current
>> behavior.
> 
> Jan, it seems it is not a good idea to modify the Xen coding style
> without investigation of the issue first. It takes some effort to
> automate every such (or similar) exceptional code formatting case. So
> it looks we could find a better option, than just adding one more
> exception to Xen coding style, at least worth to investigate it first.
> 
>>> Could you please share more details about the background of the issue
>>> and examples?
>>
>> What (further) background and what kind of examples are you after?
> 
> I expected you to have some arguments why it cannot be fixed in the
> diff or other tools.

Changing diff upstream might be possible. Changing today's incarnations
in all distros out in the wild is barely doable.

Another question is whether we really want diff to be changed. The
current behavior is fine for assembly sources for example. A changed
diff would no longer present the last label for context.

> The examples I meant are any real patches code examples to be used for
> this investigation.

A snipplet from commit 57f8b13c724023c78fa15a80452d1de3e51a1418:

@@ -4096,14 +4097,12 @@ retry_transaction:
          goto out;

      if (target == NULL) {
-        libxl__xs_printf(gc, t, target_path, "%"PRIu32,
-                         (uint32_t) info.current_memkb);
-        *target_memkb = (uint32_t) info.current_memkb;
+        libxl__xs_printf(gc, t, target_path, "%"PRIu64, 
info.current_memkb);
+        *target_memkb = info.current_memkb;
      }
      if (staticmax == NULL) {
-        libxl__xs_printf(gc, t, max_path, "%"PRIu32,
-                         (uint32_t) info.max_memkb);
-        *max_memkb = (uint32_t) info.max_memkb;
+        libxl__xs_printf(gc, t, max_path, "%"PRIu64, info.max_memkb);
+        *max_memkb = info.max_memkb;
      }

      rc = 0;


Juergen


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  parent reply	other threads:[~2019-08-01 12:50 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-18 14:43 [Xen-devel] [RFC] xen: Add .astylerc for automated style-formatting Tamas K Lengyel
2019-07-18 15:02 ` Julien Grall
2019-07-18 15:14   ` Tamas K Lengyel
2019-07-18 15:42     ` Julien Grall
2019-07-18 17:18       ` Tamas K Lengyel
2019-07-19  8:26         ` Julien Grall
2019-07-18 17:22       ` Tamas K Lengyel
2019-07-19  8:35         ` Julien Grall
2019-07-26 14:58           ` Viktor Mitin
2019-07-26 15:12             ` Julien Grall
2019-07-26 15:23               ` Tamas K Lengyel
2019-07-29  7:31               ` Lars Kurth
2019-07-19  9:00         ` Jan Beulich
2019-07-19 13:10           ` Tamas K Lengyel
2019-07-26 14:52         ` Viktor Mitin
2019-07-18 17:25       ` Tamas K Lengyel
2019-07-18 17:32       ` Tamas K Lengyel
2019-07-18 17:38       ` Tamas K Lengyel
2019-07-18 17:48       ` Tamas K Lengyel
2019-07-19  8:43         ` Julien Grall
2019-07-19 13:00           ` Tamas K Lengyel
2019-07-19 13:11             ` Julien Grall
2019-07-19 13:14               ` Tamas K Lengyel
2019-07-19 13:24                 ` Julien Grall
2019-07-19 13:31                   ` Julien Grall
2019-07-19 13:50                     ` Rich Persaud
2019-07-19 14:47                       ` Julien Grall
2019-07-24 12:53                       ` Lars Kurth
2019-07-19 13:52                     ` Tamas K Lengyel
2019-07-26 14:54         ` Viktor Mitin
2019-07-26 14:49       ` Viktor Mitin
2019-07-26 14:57         ` Julien Grall
2019-07-29 12:19         ` Jan Beulich
2019-07-29 12:49           ` Julien Grall
2019-07-29 13:02             ` Jan Beulich
2019-07-31 16:20               ` Viktor Mitin
2019-08-01  7:37                 ` Jan Beulich
2019-08-01 12:16                   ` Viktor Mitin
2019-08-01 12:43                     ` Jan Beulich
2019-08-01 12:50                     ` Juergen Gross [this message]
2019-08-02  8:38                       ` Viktor Mitin
2019-08-02  9:23                         ` Juergen Gross
2019-08-02 11:44                           ` Viktor Mitin
2019-08-02 12:57                             ` Jan Beulich
2019-07-18 15:13 ` Jan Beulich
2019-07-18 15:16   ` Tamas K Lengyel
2019-07-26 14:42   ` Viktor Mitin
2019-07-26 14:50     ` Tamas K Lengyel
2019-07-18 17:58 ` Andrew Cooper
2019-07-18 18:34   ` Tamas K Lengyel
2019-07-19  9:03     ` Julien Grall
2019-07-19 13:05       ` Tamas K Lengyel
2019-07-19 13:34         ` Julien Grall
2019-07-19 13:36           ` Tamas K Lengyel
2019-07-19 13:26 ` Rich Persaud
2019-07-26 15:48 ` Viktor Mitin
2019-07-26 15:54   ` Julien Grall
2019-07-29  7:20     ` Viktor Mitin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d85e76b5-0a68-af0a-375c-7f3844e6e21f@suse.com \
    --to=jgross@suse.com \
    --cc=Artem_Mygaiev@epam.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=Iurii_Artemenko@epam.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=julien.grall@arm.com \
    --cc=konrad.wilk@oracle.com \
    --cc=lars.kurth@citrix.com \
    --cc=sstabellini@kernel.org \
    --cc=tamas@tklengyel.com \
    --cc=tim@xen.org \
    --cc=viktor.mitin.19@gmail.com \
    --cc=wl@xen.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.