Changeset 356acd0 in mainline for uspace/app/trace/trace.c
- Timestamp:
- 2008-09-19T12:35:07Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d1c8287
- Parents:
- a5c3f73
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/trace/trace.c
ra5c3f73 r356acd0 137 137 } 138 138 139 void val_print( int val, val_type_t v_type)139 void val_print(sysarg_t val, val_type_t v_type) 140 140 { 141 141 switch (v_type) { … … 145 145 146 146 case V_INTEGER: 147 printf("% d", val);147 printf("%ld", val); 148 148 break; 149 149 150 150 case V_HASH: 151 printf("0x%08 x", val);151 printf("0x%08lx", val); 152 152 break; 153 153 154 154 case V_ERRNO: 155 155 if (val >= -15 && val <= 0) { 156 printf("% d %s (%s)", val,156 printf("%ld %s (%s)", val, 157 157 err_desc[-val].name, 158 158 err_desc[-val].desc); 159 159 } else { 160 printf("% d", val);160 printf("%ld", val); 161 161 } 162 162 break; 163 163 case V_INT_ERRNO: 164 164 if (val >= -15 && val < 0) { 165 printf("% d %s (%s)", val,165 printf("%ld %s (%s)", val, 166 166 err_desc[-val].name, 167 167 err_desc[-val].desc); 168 168 } else { 169 printf("% d", val);169 printf("%ld", val); 170 170 } 171 171 break; … … 182 182 case '\t': printf("'\\t'"); break; 183 183 case '\\': printf("'\\\\'"); break; 184 default: printf("'\\x% X'"); break;184 default: printf("'\\x%02lX'", val); break; 185 185 } 186 186 } … … 190 190 191 191 192 static void print_sc_retval( int retval, val_type_t val_type)192 static void print_sc_retval(sysarg_t retval, val_type_t val_type) 193 193 { 194 194 printf(" -> ");
Note:
See TracChangeset
for help on using the changeset viewer.