Re: [PATCH 2/2] vsprintf: Add support for userspace strings

2015-05-12 Thread Richard Weinberger
Am 12.05.2015 um 01:23 schrieb Andrew Morton: > On Sun, 10 May 2015 13:16:22 -0700 Joe Perches wrote: > >> On Sun, 2015-05-10 at 22:11 +0200, Richard Weinberger wrote: >>> Am 10.05.2015 um 22:09 schrieb Joe Perches: On Sun, 2015-05-10 at 21:42 +0200, Richard Weinberger wrote: > Add %pL f

Re: [PATCH 2/2] vsprintf: Add support for userspace strings

2015-05-11 Thread Andrew Morton
On Sun, 10 May 2015 13:16:22 -0700 Joe Perches wrote: > On Sun, 2015-05-10 at 22:11 +0200, Richard Weinberger wrote: > > Am 10.05.2015 um 22:09 schrieb Joe Perches: > > > On Sun, 2015-05-10 at 21:42 +0200, Richard Weinberger wrote: > > >> Add %pL format string to print userspace strings. > > >> I

Re: [PATCH 2/2] vsprintf: Add support for userspace strings

2015-05-10 Thread Richard Weinberger
Am 10.05.2015 um 22:16 schrieb Joe Perches: > On Sun, 2015-05-10 at 22:11 +0200, Richard Weinberger wrote: >> Am 10.05.2015 um 22:09 schrieb Joe Perches: >>> On Sun, 2015-05-10 at 21:42 +0200, Richard Weinberger wrote: Add %pL format string to print userspace strings. It works like %s but

Re: [PATCH 2/2] vsprintf: Add support for userspace strings

2015-05-10 Thread Joe Perches
On Sun, 2015-05-10 at 22:11 +0200, Richard Weinberger wrote: > Am 10.05.2015 um 22:09 schrieb Joe Perches: > > On Sun, 2015-05-10 at 21:42 +0200, Richard Weinberger wrote: > >> Add %pL format string to print userspace strings. > >> It works like %s but does copy_from_user() instead > >> of a memcpy

Re: [PATCH 2/2] vsprintf: Add support for userspace strings

2015-05-10 Thread Richard Weinberger
Am 10.05.2015 um 22:09 schrieb Joe Perches: > On Sun, 2015-05-10 at 21:42 +0200, Richard Weinberger wrote: >> Add %pL format string to print userspace strings. >> It works like %s but does copy_from_user() instead >> of a memcpy(). > > I think this would be much simpler in a new > function rather

Re: [PATCH 2/2] vsprintf: Add support for userspace strings

2015-05-10 Thread Joe Perches
On Sun, 2015-05-10 at 21:42 +0200, Richard Weinberger wrote: > Add %pL format string to print userspace strings. > It works like %s but does copy_from_user() instead > of a memcpy(). I think this would be much simpler in a new function rather than complicating string() -- To unsubscribe from thi