Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1574600
| From | Petr Mladek <pmladek@suse.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCHv7 4/8] printk: always use deferred printk when flush printk_safe lines |
| Date | 2017-02-06 13:20 +0100 |
| Message-ID | <t7Qr0-4PJ-19@gated-at.bofh.it> (permalink) |
| References | (5 earlier) <t6rXH-5Vl-11@gated-at.bofh.it> <t6Bu1-3Kg-15@gated-at.bofh.it> <t6K4h-U7-9@gated-at.bofh.it> <t7GBj-6H0-11@gated-at.bofh.it> <t7GUF-72t-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon 2017-02-06 11:08:20, Sergey Senozhatsky wrote:
> On (02/06/17 10:48), Sergey Senozhatsky wrote:
> [..]
> > from many places:
> >
> > 4x printk_safe_flush_buffer()
> > 1x __printk_safe_flush()
> >
> >
> > replacing printk_safe_flush_line() with printk_deferred() produces things
> > like these
> >
> > printk_deferred("%.*s", end - start, start);
> > printk_deferred("%.*s", strlen(newline), newline);
>
> ah... besides we need to cast length argument to "int".
Good point.
> > just in case, the patch (which I prefer to be ignored)
>
> let's keep printk_safe_flush_line().
I do not have strong opinion but I would slightly prefer
to keep the helper function. The use of printk_deferred()
is a bit tricky and it is better to have only one copy.
Steven, could you live with the original patch, please?
Best Regards,
Petr
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCHv7 4/8] printk: always use deferred printk when flush printk_safe lines Steven Rostedt <rostedt@goodmis.org> - 2017-02-01 17:10 +0100
Re: [PATCHv7 4/8] printk: always use deferred printk when flush printk_safe lines Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2017-02-02 07:10 +0100
Re: [PATCHv7 4/8] printk: always use deferred printk when flush printk_safe lines Petr Mladek <pmladek@suse.com> - 2017-02-02 16:40 +0100
Re: [PATCHv7 4/8] printk: always use deferred printk when flush printk_safe lines Petr Mladek <pmladek@suse.com> - 2017-02-02 17:00 +0100
Re: [PATCHv7 4/8] printk: always use deferred printk when flush printk_safe lines Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2017-02-03 03:10 +0100
Re: [PATCHv7 4/8] printk: always use deferred printk when flush printk_safe lines Petr Mladek <pmladek@suse.com> - 2017-02-03 12:20 +0100
Re: [PATCHv7 4/8] printk: always use deferred printk when flush printk_safe lines Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2017-02-06 02:50 +0100
Re: [PATCHv7 4/8] printk: always use deferred printk when flush printk_safe lines Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2017-02-06 03:10 +0100
Re: [PATCHv7 4/8] printk: always use deferred printk when flush printk_safe lines Petr Mladek <pmladek@suse.com> - 2017-02-06 13:20 +0100
Re: [PATCHv7 4/8] printk: always use deferred printk when flush printk_safe lines Steven Rostedt <rostedt@goodmis.org> - 2017-02-06 14:30 +0100
Re: [PATCHv7 4/8] printk: always use deferred printk when flush printk_safe lines Sergey Senozhatsky <sergey.senozhatsky@gmail.com> - 2017-02-06 17:50 +0100
Re: [PATCHv7 4/8] printk: always use deferred printk when flush printk_safe lines Steven Rostedt <rostedt@goodmis.org> - 2017-02-06 18:00 +0100
csiph-web