Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
f3c8ec67
Commit
f3c8ec67
authored
Apr 16, 2017
by
davidcunado-arm
Committed by
GitHub
Apr 16, 2017
Browse files
Merge pull request #893 from antonio-nino-diaz-arm/an/tf-printf-error
Replace tf_printf occurrences with ERROR
parents
3d21c945
38aecbb4
Changes
1
Show whitespace changes
Inline
Side-by-side
drivers/arm/cci/cci.c
View file @
f3c8ec67
/*
/*
* Copyright (c) 2015, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2015
-2017
, ARM Limited and Contributors. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* modification, are permitted provided that the following conditions are met:
...
@@ -54,20 +54,19 @@ static int validate_cci_map(const int *map)
...
@@ -54,20 +54,19 @@ static int validate_cci_map(const int *map)
continue
;
continue
;
if
(
slave_if_id
>=
CCI_SLAVE_INTERFACE_COUNT
)
{
if
(
slave_if_id
>=
CCI_SLAVE_INTERFACE_COUNT
)
{
tf_printf
(
"Slave interface ID is invalid
\n
"
);
ERROR
(
"Slave interface ID is invalid
\n
"
);
return
0
;
return
0
;
}
}
if
(
valid_cci_map
&
(
1
<<
slave_if_id
))
{
if
(
valid_cci_map
&
(
1
<<
slave_if_id
))
{
tf_printf
(
"Multiple masters are assigned same"
ERROR
(
"Multiple masters are assigned same slave interface ID
\n
"
);
" slave interface ID
\n
"
);
return
0
;
return
0
;
}
}
valid_cci_map
|=
1
<<
slave_if_id
;
valid_cci_map
|=
1
<<
slave_if_id
;
}
}
if
(
!
valid_cci_map
)
{
if
(
!
valid_cci_map
)
{
tf_printf
(
"No master is assigned a valid slave interface
\n
"
);
ERROR
(
"No master is assigned a valid slave interface
\n
"
);
return
0
;
return
0
;
}
}
...
...
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