Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 351589

Summary: Need an extended set_errno() API to be able to use a formatted error messages.
Product: [Tools] TCF Reporter: Didier Brachet <dbrachet.wr>
Component: AgentAssignee: Project Inbox <tcf.agent-inbox>
Status: RESOLVED FIXED QA Contact: Eugene Tarassov <eugene>
Severity: enhancement    
Priority: P3 CC: cdtdoug, mober.at+eclipse
Version: unspecified   
Target Milestone: 0.4.0   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch for enhancment request eugene: iplog+

Description Didier Brachet CLA 2011-07-08 11:06:29 EDT
Build Identifier: 

In TCF agent, there is already a set_errno() API that can associate an error message with an error number; however this error message is a fixed string. in some cases it would be possible to use a more complex string with variable arguments. This can of course be done by first calling sprintf(), storing a result in a buffer and calling set_errno() with this buffer but it would be great if a generic API would do this.

Reproducible: Always
Comment 1 Didier Brachet CLA 2011-07-08 11:13:24 EDT
Created attachment 199343 [details]
Patch for enhancment request
Comment 2 Eugene Tarassov CLA 2011-07-08 12:11:08 EDT
I have committed the patch - with minor changes to get rid of compiler warnings.
Thanks!