Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
29a0b630
Commit
29a0b630
authored
Sep 20, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use object address for logging - fixes uniqueness problems
parent
a48ae284
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
39 deletions
+16
-39
include/vlc_messages.h
include/vlc_messages.h
+1
-1
modules/gui/qt4/dialogs/messages.cpp
modules/gui/qt4/dialogs/messages.cpp
+2
-2
src/misc/messages.c
src/misc/messages.c
+13
-36
No files found.
include/vlc_messages.h
View file @
29a0b630
...
...
@@ -48,7 +48,7 @@
typedef
struct
{
int
i_type
;
/**< message type, see below */
int
i_object_id
;
uintptr_t
i_object_id
;
const
char
*
psz_object_type
;
char
*
psz_module
;
char
*
psz_msg
;
/**< the message itself */
...
...
modules/gui/qt4/dialogs/messages.cpp
View file @
29a0b630
...
...
@@ -211,10 +211,10 @@ void MessagesDialog::buildTree( QTreeWidgetItem *parentItem,
if
(
p_obj
->
psz_object_name
)
item
->
setText
(
0
,
qfu
(
p_obj
->
psz_object_type
)
+
"
\"
"
+
qfu
(
p_obj
->
psz_object_name
)
+
"
\"
("
+
QString
::
number
(
p_obj
->
i_object_id
)
+
")"
);
QString
::
number
(
(
uintptr_t
)
p_obj
)
+
")"
);
else
item
->
setText
(
0
,
qfu
(
p_obj
->
psz_object_type
)
+
" ("
+
QString
::
number
(
p_obj
->
i_object_id
)
+
")"
);
QString
::
number
(
(
uintptr_t
)
p_obj
)
+
")"
);
item
->
setExpanded
(
true
);
...
...
src/misc/messages.c
View file @
29a0b630
...
...
@@ -477,7 +477,7 @@ static void QueueMsg( vlc_object_t *p_this, int i_type, const char *psz_module,
p_queue
->
i_stop
=
(
p_queue
->
i_stop
+
1
)
%
VLC_MSG_QSIZE
;
p_item
->
i_type
=
VLC_MSG_WARN
;
p_item
->
i_object_id
=
p_this
->
i_object_id
;
p_item
->
i_object_id
=
(
uintptr_t
)
p_this
;
p_item
->
psz_object_type
=
p_this
->
psz_object_type
;
p_item
->
psz_module
=
strdup
(
"message"
);
p_item
->
psz_msg
=
strdup
(
"message queue overflowed"
);
...
...
@@ -498,7 +498,7 @@ static void QueueMsg( vlc_object_t *p_this, int i_type, const char *psz_module,
/* Fill message information fields */
p_item
->
i_type
=
i_type
;
p_item
->
i_object_id
=
p_this
->
i_object_id
;
p_item
->
i_object_id
=
(
uintptr_t
)
p_this
;
p_item
->
psz_object_type
=
p_this
->
psz_object_type
;
p_item
->
psz_module
=
strdup
(
psz_module
);
p_item
->
psz_msg
=
psz_str
;
...
...
@@ -635,40 +635,17 @@ static void PrintMsg ( vlc_object_t * p_this, msg_item_t * p_item )
#else
/* Send the message to stderr */
if
(
priv
->
b_color
)
{
if
(
p_item
->
psz_header
)
{
utf8_fprintf
(
stderr
,
"["
GREEN
"%.8i"
GRAY
"] %s %s %s%s: %s%s"
GRAY
"
\n
"
,
p_item
->
i_object_id
,
p_item
->
psz_header
,
p_item
->
psz_module
,
psz_object
,
ppsz_type
[
i_type
],
ppsz_color
[
i_type
],
p_item
->
psz_msg
);
}
else
{
utf8_fprintf
(
stderr
,
"["
GREEN
"%.8i"
GRAY
"] %s %s%s: %s%s"
GRAY
"
\n
"
,
p_item
->
i_object_id
,
p_item
->
psz_module
,
psz_object
,
ppsz_type
[
i_type
],
ppsz_color
[
i_type
],
p_item
->
psz_msg
);
}
}
else
{
if
(
p_item
->
psz_header
)
{
utf8_fprintf
(
stderr
,
"[%.8i] %s %s %s%s: %s
\n
"
,
p_item
->
i_object_id
,
p_item
->
psz_header
,
p_item
->
psz_module
,
psz_object
,
ppsz_type
[
i_type
],
p_item
->
psz_msg
);
}
else
{
utf8_fprintf
(
stderr
,
"[%.8i] %s %s%s: %s
\n
"
,
p_item
->
i_object_id
,
p_item
->
psz_module
,
psz_object
,
ppsz_type
[
i_type
],
p_item
->
psz_msg
);
}
}
utf8_fprintf
(
stderr
,
"[%s%p%s] %s%s%s %s%s: %s%s%s
\n
"
,
priv
->
b_color
?
GREEN
:
""
,
(
void
*
)
p_item
->
i_object_id
,
priv
->
b_color
?
GRAY
:
""
,
p_item
->
psz_header
?
p_item
->
psz_header
:
""
,
p_item
->
psz_header
?
" "
:
""
,
p_item
->
psz_module
,
psz_object
,
ppsz_type
[
i_type
],
priv
->
b_color
?
ppsz_color
[
i_type
]
:
""
,
p_item
->
psz_msg
,
priv
->
b_color
?
GRAY
:
""
);
# if defined(WIN32)
fflush
(
stderr
);
...
...
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