Changeset 7715994 in mainline for uspace/srv/net/app/print_error.h
- Timestamp:
- 2010-03-13T12:17:02Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6ba20a6b
- Parents:
- d0febca (diff), 2070570 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/app/print_error.h
rd0febca r7715994 42 42 * @returns A value indicating whether the error code may be an ICMP error code. 43 43 */ 44 #define IS_ICMP_ERROR( error_code ) (( error_code ) > 0)44 #define IS_ICMP_ERROR(error_code) ((error_code) > 0) 45 45 46 46 /** Returns whether the error code may be socket error code. … … 48 48 * @returns A value indicating whether the error code may be a socket error code. 49 49 */ 50 #define IS_SOCKET_ERROR( error_code ) (( error_code ) < 0 ) 50 #define IS_SOCKET_ERROR(error_code) ((error_code) < 0) 51 52 /** Prints the specific ICMP error description. 53 * @param[in] output The description output stream. May be NULL. 54 * @param[in] error_code The ICMP error code. 55 * @param[in] prefix The error description prefix. May be NULL. 56 * @param[in] suffix The error description suffix. May be NULL. 57 */ 58 void icmp_print_error(FILE * output, int error_code, const char * prefix, const char * suffix); 51 59 52 60 /** Prints the error description. … … 57 65 * @param[in] suffix The error description suffix. May be NULL. 58 66 */ 59 void print_error( FILE * output, int error_code, const char * prefix, const char * suffix ); 60 61 /** Prints the specific ICMP error description. 62 * @param[in] output The description output stream. May be NULL. 63 * @param[in] error_code The ICMP error code. 64 * @param[in] prefix The error description prefix. May be NULL. 65 * @param[in] suffix The error description suffix. May be NULL. 66 */ 67 void icmp_print_error( FILE * output, int error_code, const char * prefix, const char * suffix ); 67 void print_error(FILE * output, int error_code, const char * prefix, const char * suffix); 68 68 69 69 /** Prints the specific socket error description. … … 73 73 * @param[in] suffix The error description suffix. May be NULL. 74 74 */ 75 void socket_print_error( FILE * output, int error_code, const char * prefix, const char * suffix);75 void socket_print_error(FILE * output, int error_code, const char * prefix, const char * suffix); 76 76 77 77 #endif
Note:
See TracChangeset
for help on using the changeset viewer.