Skip to content

Commit

Permalink
cmake: extensions: fix copy/paste issues in DT error messages
Browse files Browse the repository at this point in the history
These were copied from dt_reg_addr and not changed.

Signed-off-by: Martí Bolívar <[email protected]>
  • Loading branch information
mbolivar-nordic authored and galak committed Sep 1, 2021
1 parent 33d4ac4 commit d98a15d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/extensions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2734,12 +2734,12 @@ function(dt_reg_size var)
cmake_parse_arguments(DT_REG "" "${req_single_args};${single_args}" "" ${ARGN})

if(${ARGV0} IN_LIST req_single_args)
message(FATAL_ERROR "dt_reg_addr(${ARGV0} ...) missing return parameter.")
message(FATAL_ERROR "dt_reg_size(${ARGV0} ...) missing return parameter.")
endif()

foreach(arg ${req_single_args})
if(NOT DEFINED DT_REG_${arg})
message(FATAL_ERROR "dt_reg_addr(${ARGV0} ...) "
message(FATAL_ERROR "dt_reg_size(${ARGV0} ...) "
"missing required argument: ${arg}"
)
endif()
Expand Down

0 comments on commit d98a15d

Please sign in to comment.