Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doxverilog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
doxverilog
Commits
eabb59cb
Commit
eabb59cb
authored
Aug 02, 2014
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #204 from albert-github/feature/bug_message_length
Messages truncated in warnings file
parents
88468313
cc4f3b45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
message.cpp
src/message.cpp
+3
-3
No files found.
src/message.cpp
View file @
eabb59cb
...
@@ -152,15 +152,15 @@ static void format_warn(const char *file,int line,const char *text)
...
@@ -152,15 +152,15 @@ static void format_warn(const char *file,int line,const char *text)
static
void
do_warn
(
const
char
*
tag
,
const
char
*
file
,
int
line
,
const
char
*
prefix
,
const
char
*
fmt
,
va_list
args
)
static
void
do_warn
(
const
char
*
tag
,
const
char
*
file
,
int
line
,
const
char
*
prefix
,
const
char
*
fmt
,
va_list
args
)
{
{
if
(
!
Config_getBool
(
tag
))
return
;
// warning type disabled
if
(
!
Config_getBool
(
tag
))
return
;
// warning type disabled
char
text
[
4096
];
char
text
[
4096
0
];
int
l
=
0
;
int
l
=
0
;
if
(
prefix
)
if
(
prefix
)
{
{
strcpy
(
text
,
prefix
);
strcpy
(
text
,
prefix
);
l
=
strlen
(
prefix
);
l
=
strlen
(
prefix
);
}
}
vsnprintf
(
text
+
l
,
4096
-
l
,
fmt
,
args
);
vsnprintf
(
text
+
l
,
4096
0
-
l
,
fmt
,
args
);
text
[
409
5
]
=
'\0'
;
text
[
409
60
-
1
]
=
'\0'
;
format_warn
(
file
,
line
,
text
);
format_warn
(
file
,
line
,
text
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment