|
Line
Link Here
|
|
-- e2fsprogs-1.38/lib/et/error_message.c |
|
|
|
Lines 24-31
Link Here
|
| 24 |
#include "error_table.h" |
24 |
#include "error_table.h" |
| 25 |
#include "internal.h" |
25 |
#include "internal.h" |
| 26 |
|
26 |
|
| 27 |
static char buffer[25]; |
|
|
| 28 |
|
| 29 |
struct et_list * _et_list = (struct et_list *) NULL; |
27 |
struct et_list * _et_list = (struct et_list *) NULL; |
| 30 |
struct et_list * _et_dynamic_list = (struct et_list *) NULL; |
28 |
struct et_list * _et_dynamic_list = (struct et_list *) NULL; |
| 31 |
|
29 |
|
|
Lines 71-95
const char * error_message (errcode_t co
Link Here
|
| 71 |
} |
69 |
} |
| 72 |
} |
70 |
} |
| 73 |
oops: |
71 |
oops: |
| 74 |
strcpy (buffer, "Unknown code "); |
72 |
return "Unknown code"; |
| 75 |
if (table_num) { |
|
|
| 76 |
strcat (buffer, error_table_name (table_num)); |
| 77 |
strcat (buffer, " "); |
| 78 |
} |
| 79 |
for (cp = buffer; *cp; cp++) |
| 80 |
; |
| 81 |
if (offset >= 100) { |
| 82 |
*cp++ = '0' + offset / 100; |
| 83 |
offset %= 100; |
| 84 |
started++; |
| 85 |
} |
| 86 |
if (started || offset >= 10) { |
| 87 |
*cp++ = '0' + offset / 10; |
| 88 |
offset %= 10; |
| 89 |
} |
| 90 |
*cp++ = '0' + offset; |
| 91 |
*cp = '\0'; |
| 92 |
return(buffer); |
| 93 |
} |
73 |
} |
| 94 |
|
74 |
|
| 95 |
/* |
75 |
/* |