On Monday, 26 March 2007 11:07, Stefan Seyfried wrote: > Hi, > > after reading this thread, i got the impression that we do not report > errors verbosely enough. I mean - we normally never see those messages, > but if we do, due to an error having happened, we always need to start > adding more debugging printf's before we know what happened. > > Oh, yes, and pm-ops->* can only return -1 or 0, so telling the user > that it returned "-1" is also pretty pointless, let's tell him whats > in errno instead. > > So i came up with this one, comments are appreciated:
Looks good at first sight, although I'd prefer to use an inline function instead of the #define for suspend_error(). Greetings, Rafael ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Suspend-devel mailing list Suspend-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/suspend-devel