Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-web-393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-web-393
Commits
71bb5a2e
Commit
71bb5a2e
authored
Aug 22, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
print flags
parent
7d16b219
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
3 deletions
+24
-3
debugfs.js
src/debugfs-webgui/debugfs.js
+24
-3
No files found.
src/debugfs-webgui/debugfs.js
View file @
71bb5a2e
...
...
@@ -176,7 +176,14 @@ function fill_content_rebind_events(){
$
(
".debug"
).
change
(
function
(){
var
index
=
$
(
this
).
attr
(
"index"
);
var
subindex
=
$
(
this
).
attr
(
"subindex"
);
if
(
$
(
this
).
prop
(
"checked"
))
flags
=
"p"
;
var
flags
=
""
;
if
(
$
(
"#tflag_"
+
index
).
prop
(
"checked"
))
flags
+=
"t"
;
if
(
$
(
"#mflag_"
+
index
).
prop
(
"checked"
))
flags
+=
"m"
;
if
(
$
(
"#lflag_"
+
index
).
prop
(
"checked"
))
flags
+=
"l"
;
if
(
$
(
"#fflag_"
+
index
).
prop
(
"checked"
))
flags
+=
"f"
;
if
(
$
(
this
).
prop
(
"checked"
))
flags
=
"p"
+
flags
;
else
flags
=
"_"
;
debugfs_data
[
index
].
configs
[
0
].
lines
[
subindex
].
flags
=
flags
;
...
...
@@ -292,9 +299,23 @@ function init_ui_controls(record,index){
}
});
});
var
f0
=
$
(
"<span title='Include the function name in the printed message'>"
);
var
f1
=
$
(
"<span title='Include line number in the printed message'>"
);
var
f2
=
$
(
"<span title='Include module name in the printed message'>"
);
var
f3
=
$
(
"<span title='Include thread ID in messages not generated from interrupt context'>"
);
var
pre_bc1
=
$
(
"<span>"
,{
title
:
"Current config name"
}).
html
(
" config: "
);
var
f0_cb
=
$
(
"<input>"
,{
id
:
"fflag_"
+
index
,
type
:
"checkbox"
,
class
:
"tp"
}).
css
({
position
:
"relative"
,
top
:
"3px"
});
var
f1_cb
=
$
(
"<input>"
,{
id
:
"lflag_"
+
index
,
type
:
"checkbox"
,
class
:
"tp"
}).
css
({
position
:
"relative"
,
top
:
"3px"
});
var
f2_cb
=
$
(
"<input>"
,{
id
:
"mflag_"
+
index
,
type
:
"checkbox"
,
class
:
"tp"
}).
css
({
position
:
"relative"
,
top
:
"3px"
});
var
f3_cb
=
$
(
"<input>"
,{
id
:
"tflag_"
+
index
,
type
:
"checkbox"
,
class
:
"tp"
}).
css
({
position
:
"relative"
,
top
:
"3px"
});
f0
.
html
(
" f "
).
append
(
f0_cb
);
f1
.
html
(
" l "
).
append
(
f1_cb
);
f2
.
html
(
" m "
).
append
(
f2_cb
);
f3
.
html
(
" t "
).
append
(
f3_cb
);
var
pre_bc1
=
$
(
"<span>"
,{
title
:
"Current config name"
}).
html
(
" config: "
);
var
dc0_b
=
$
(
"<button>"
,{
class
:
"btn btn-default btn-sm btn-success dropdown-toggle"
,
...
...
@@ -315,7 +336,7 @@ function init_ui_controls(record,index){
var
dc0
=
$
(
"<div>"
,{
class
:
"btn-group"
,
role
:
"group"
}).
append
(
dc0_b
).
append
(
dc0_ul
);
controls
.
find
(
"#controls_td"
).
append
(
bc0
).
append
(
pre_bc1
).
append
(
dc0
);
controls
.
find
(
"#controls_td"
).
append
(
bc0
).
append
(
f0
).
append
(
f1
).
append
(
f2
).
append
(
f3
).
append
(
pre_bc1
).
append
(
dc0
);
return
controls
;
}
...
...
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