[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <917e7b99-bb75-80b2-a356-918d6128705a@users.sourceforge.net>
Date: Fri, 4 Nov 2016 13:48:51 +0100
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: Michal Marek <mmarek@...e.com>, linux-kbuild@...r.kernel.org
Cc: Masahiro Yamada <yamada.masahiro@...ionext.com>,
LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: Re: scripts/basic/bin2c: Complete error handling in main()
>>> You could define an xprintf() macro that checks if the return value
>>> is < 0 and simply calls perror() and exit(1) in such case.
>> Does such a macro belong to any general header file from the Linux
>> software library?
> No.
Would you like to add it?
How do you think about to reuse it in more source files?
Regards,
Markus
Powered by blists - more mailing lists