[FFmpeg-devel] [PATCH 2/6] Implement IOCTL_ERROR macro and use it.

Stefano Sabatini stefano.sabatini-lala
Mon Apr 26 23:21:12 CEST 2010


On date Monday 2010-04-26 01:35:11 +0200, Michael Niedermayer encoded:
> On Mon, Apr 26, 2010 at 12:36:12AM +0200, Luca Abeni wrote:
> > On Mon, 2010-04-26 at 00:26 +0200, Michael Niedermayer wrote:
> > [...]
> > > > > > I am not sure if this kind of changes really improve the readability.
> > > > > 
> > > > > I generalized the previous patch, now we have a log_errno() function
> > > > > which is used whenever we need to print the string corresponding to an
> > > > > errno.
> > > > 
> > > > If we really want to have a log_errno(), then I think it should not be
> > > > private to v4l2.c (I expect that libav* contains some other code that
> > > > want to print error messages followed by an errno description).
> > > > 
> > > > I suspect it could go to libavutil/log.c... If Michael approves it, then
> > > > I am ok with the av_log() -> log_errno() contained in this patch.
> > > 
> > > you are trying to sidestep saying the patch is uhm by pushing it my
> > > direction?
> > 
> > No, sorry... :)
> > I wanted to say that _if_ we want this kind of change, then log_errno()
> > should not be a v4l2.c feature. But since I do not maintain log.c, I
> > cannot approve putting log_errno() there.
> > 
> > So, I think there are various questions:
> > 1) Is log_errno() useful/wanted? I am undecided about this (other
> > people's opinions are welcome)
> 
> iam leaning toward no here

New attempt with a new generalization of log_errno().

Regards.
-- 
FFmpeg = Frenzy Fascinating Mere Patchable Extended Generator



More information about the ffmpeg-devel mailing list