mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
tools: gst-stats: Use standard character escapes
Having '\e' expand to '\x1b' is a gnu extension. I didn't see any document describing the behavior, but gcc also seems to expand '\[' to '['. https://bugzilla.gnome.org/show_bug.cgi?id=782028
This commit is contained in:
parent
f28435b0d4
commit
f37688ef4d
1 changed files with 4 additions and 4 deletions
|
@ -649,15 +649,15 @@ init (void)
|
|||
/* 1: ts */
|
||||
"^([0-9:.]+) +"
|
||||
/* 2: pid */
|
||||
"\\\e\\\[[0-9;]+m *([0-9]+)\\\e\\\[00m +"
|
||||
"\\\x1b\\[[0-9;]+m *([0-9]+)\\\x1b\\[00m +"
|
||||
/* 3: thread */
|
||||
"(0x[0-9a-fA-F]+) +"
|
||||
/* 4: level */
|
||||
"(?:\\\e\\\[[0-9;]+m)?([A-Z]+) +\\\e\\\[00m +"
|
||||
"(?:\\\x1b\\[[0-9;]+m)?([A-Z]+) +\\\x1b\\[00m +"
|
||||
/* 5: category */
|
||||
"\\\e\\\[[0-9;]+m +([a-zA-Z_-]+) +"
|
||||
"\\\x1b\\[[0-9;]+m +([a-zA-Z_-]+) +"
|
||||
/* 6: file:line:func: */
|
||||
"([^:]*:[0-9]+:[^:]*:)(?:\\\e\\\[00m)? +"
|
||||
"([^:]*:[0-9]+:[^:]*:)(?:\\\x1b\\[00m)? +"
|
||||
/* 7: (obj)? log-text */
|
||||
"(.*)$", 0, 0, NULL);
|
||||
if (!raw_log) {
|
||||
|
|
Loading…
Reference in a new issue