Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
b631788a
Commit
b631788a
authored
Jul 06, 2015
by
Vineet Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARC: slightly refactor macros for boot logging
Signed-off-by:
Vineet Gupta
<
vgupta@synopsys.com
>
parent
9138d413
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
arch/arc/kernel/setup.c
arch/arc/kernel/setup.c
+5
-4
No files found.
arch/arc/kernel/setup.c
View file @
b631788a
...
...
@@ -150,9 +150,10 @@ static const struct cpuinfo_data arc_cpu_tbl[] = {
{
{
0x00
,
NULL
}
}
};
#define IS_AVAIL1(v, str) ((v) ? str : "")
#define IS_USED(cfg) (IS_ENABLED(cfg) ? "" : "(not used) ")
#define IS_AVAIL2(v, str, cfg) IS_AVAIL1(v, str), IS_AVAIL1(v, IS_USED(cfg))
#define IS_AVAIL1(v, s) ((v) ? s : "")
#define IS_USED_RUN(v) ((v) ? "" : "(not used) ")
#define IS_USED_CFG(cfg) IS_USED_RUN(IS_ENABLED(cfg))
#define IS_AVAIL2(v, s, cfg) IS_AVAIL1(v, s), IS_AVAIL1(v, IS_USED_CFG(cfg))
static
char
*
arc_cpu_mumbojumbo
(
int
cpu_id
,
char
*
buf
,
int
len
)
{
...
...
@@ -226,7 +227,7 @@ static char *arc_cpu_mumbojumbo(int cpu_id, char *buf, int len)
n
+=
scnprintf
(
buf
+
n
,
len
-
n
,
"mpy[opt %d] "
,
opt
);
}
n
+=
scnprintf
(
buf
+
n
,
len
-
n
,
"%s"
,
IS_USED
(
CONFIG_ARC_HAS_HW_MPY
));
IS_USED
_CFG
(
CONFIG_ARC_HAS_HW_MPY
));
}
n
+=
scnprintf
(
buf
+
n
,
len
-
n
,
"%s%s%s%s%s%s%s%s
\n
"
,
...
...
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