Skip to content

Commit

Permalink
verbose.mk: fix ERROR message in verbose mode
Browse files Browse the repository at this point in the history
Fixes: aee3594 ("verbose.mk: print ERROR messages in non-verbose")
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
  • Loading branch information
guidosarducci committed Nov 12, 2023
1 parent a4ec2bf commit b8d63de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/verbose.mk
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,14 @@ ifeq ($(IS_TTY),1)
endif

define ERROR_MESSAGE
printf "$(_R)%s$(_N)\n" "$(1)" >&8
printf "$(_R)%s$(_N)\n" "$(1)" $(ERROR_MESSAGE_REDIR)
endef

ifeq ($(findstring s,$(OPENWRT_VERBOSE)),)
define MESSAGE
printf "$(_Y)%s$(_N)\n" "$(1)" >&8
endef
ERROR_MESSAGE_REDIR:=>&8

ifeq ($(QUIET),1)
ifneq ($(CURDIR),$(TOPDIR))
Expand All @@ -60,4 +61,5 @@ else
define MESSAGE
printf "%s\n" "$(1)"
endef
ERROR_MESSAGE_REDIR:=>&2
endif

0 comments on commit b8d63de

Please sign in to comment.