Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
6bd92d3c
...
6bd92d3c07db00b2565730ba21f1586230510b06
authored
2010-12-23 12:25:26 +0200
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Follow-up to the previous commit.
* libmu_sieve/util.c: Update.
1 parent
886bca9c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
libmu_sieve/util.c
libmu_sieve/util.c
View file @
6bd92d3
...
...
@@ -209,8 +209,10 @@ mu_sieve_error (mu_sieve_machine_t mach, const char *fmt, ...)
va_list
ap
;
va_start
(
ap
,
fmt
);
mu_stream_printf
(
mach
->
errstream
,
"
\033
s<%d>
\033
O<%d>"
,
MU_LOG_ERROR
,
MU_LOGMODE_LOCUS
);
mu_stream_printf
(
mach
->
errstream
,
"
\033
s<%d>
\033
O<%d>
\033
f<%u>%s
\033
l<%u>"
,
MU_LOG_ERROR
,
MU_LOGMODE_LOCUS
,
strlen
(
mach
->
locus
.
mu_file
),
mach
->
locus
.
mu_file
,
mach
->
locus
.
mu_line
);
if
(
mach
->
identifier
)
mu_stream_printf
(
mach
->
errstream
,
"%s: "
,
mach
->
identifier
);
mu_stream_vprintf
(
mach
->
errstream
,
fmt
,
ap
);
...
...
@@ -231,8 +233,10 @@ mu_sieve_debug (mu_sieve_machine_t mach, const char *fmt, ...)
va_start
(
ap
,
fmt
);
mu_stream_printf
(
mach
->
errstream
,
"
\033
s<%d>
\033
O<%d>"
,
MU_LOG_DEBUG
,
MU_LOGMODE_LOCUS
);
"
\033
s<%d>
\033
O<%d>
\033
f<%u>%s
\033
l<%u>"
,
MU_LOG_DEBUG
,
MU_LOGMODE_LOCUS
,
strlen
(
mach
->
locus
.
mu_file
),
mach
->
locus
.
mu_file
,
mach
->
locus
.
mu_line
);
mu_stream_vprintf
(
mach
->
errstream
,
fmt
,
ap
);
mu_stream_write
(
mach
->
errstream
,
"
\n
"
,
1
,
NULL
);
va_end
(
ap
);
...
...
@@ -247,6 +251,11 @@ mu_sieve_log_action (mu_sieve_machine_t mach, const char *action,
if
(
!
mach
->
logger
)
return
;
va_start
(
ap
,
fmt
);
mu_stream_printf
(
mach
->
errstream
,
"
\033
s<%d>
\033
O<%d>
\033
f<%u>%s
\033
l<%u>"
,
MU_LOG_INFO
,
MU_LOGMODE_LOCUS
,
strlen
(
mach
->
locus
.
mu_file
),
mach
->
locus
.
mu_file
,
mach
->
locus
.
mu_line
);
mach
->
logger
(
mach
->
data
,
mach
->
errstream
,
mach
->
msgno
,
mach
->
msg
,
action
,
fmt
,
ap
);
va_end
(
ap
);
...
...
Please
register
or
sign in
to post a comment