Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
310d0f84
Commit
310d0f84
authored
6 months ago
by
Thibault Martin
Committed by
Andre Maroneze
5 months ago
Browse files
Options
Downloads
Patches
Plain Diff
[log] Add description for all "*" categories
parent
3a05a5fe
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/kernel_services/plugin_entry_points/log.ml
+6
-0
6 additions, 0 deletions
src/kernel_services/plugin_entry_points/log.ml
with
6 additions
and
0 deletions
src/kernel_services/plugin_entry_points/log.ml
+
6
−
0
View file @
310d0f84
...
...
@@ -888,8 +888,11 @@ struct
type
warn_category
=
string
let
categories
=
ref
Category_trie
.
empty
let
categories_help
:
((
string
,
string
)
Hashtbl
.
t
)
=
Hashtbl
.
create
5
let
()
=
Hashtbl
.
add
categories_help
"*"
"All categories"
let
register_category
?
(
help
=
"No description provided"
)
(
s
:
string
)
=
let
l
=
split_category
s
in
categories
:=
Category_trie
.
add_structure
l
!
categories
;
...
...
@@ -949,8 +952,11 @@ struct
|
Some
c
->
is_debug_key_enabled
c
let
warn_categories
=
ref
Category_trie
.
empty
let
warn_categories_help
:
((
string
,
string
)
Hashtbl
.
t
)
=
Hashtbl
.
create
5
let
()
=
Hashtbl
.
add
warn_categories_help
"*"
"All warning categories"
let
register_warn_category
?
(
help
=
"No description provided"
)
s
=
let
l
=
split_category
s
in
warn_categories
:=
Category_trie
.
add_structure
l
!
warn_categories
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment