| 34 |
if (fp_log_err == NULL) |
if (fp_log_err == NULL) |
| 35 |
{ |
{ |
| 36 |
perror ("log_begin failed\n"); |
perror ("log_begin failed\n"); |
| 37 |
return -1; |
return -2; |
| 38 |
} |
} |
| 39 |
|
|
| 40 |
return 0; |
return 0; |
| 72 |
} |
} |
| 73 |
|
|
| 74 |
log_head(buf); |
log_head(buf); |
| 75 |
|
|
| 76 |
strcat(buf,msg); |
strcat(buf,msg); |
| 77 |
|
|
| 78 |
if (fprintf (fp_log_std, buf)<0) |
if (fprintf (fp_log_std, buf)<0) |
| 98 |
} |
} |
| 99 |
|
|
| 100 |
log_head(buf); |
log_head(buf); |
| 101 |
|
|
| 102 |
strcat(buf,error_msg); |
strcat(buf,error_msg); |
| 103 |
|
|
| 104 |
if (fprintf (fp_log_err, buf)<0) |
if (fprintf (fp_log_err, buf)<0) |