From: Michal Marek Date: Thu, 03 Nov 2016 15:42:22 +0000 Subject: Re: scripts/basic/bin2c: Complete error handling in main() Message-Id: List-Id: References: <72e07814-56e9-505a-d660-91ff20b6efea@users.sourceforge.net> <44402655-ef0d-1e2f-0587-f17295a08aa3@users.sourceforge.net> <0fcf5fb3-ff4a-a003-7814-51a6ab5ad988@users.sourceforge.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: SF Markus Elfring , Masahiro Yamada , linux-kbuild@vger.kernel.org Cc: LKML , kernel-janitors@vger.kernel.org Dne 2.11.2016 v 19:46 SF Markus Elfring napsal(a): >> I like the code as is. > > Do you really prefer to ignore important return values in the discussed function? You could define an xprintf() macro that checks if the return value is < 0 and simply calls perror() and exit(1) in such case. Michal