Do not print `***' when compiling unless we fall over
PATCH 1/1 Do not print `***' when compiling unless we fall over
This has finally bugged me enough to do something about it:
make prints `***' when it stops due to an error. With make -j, and/or with automated build systems, this error marker can be in the middle of a large logfile. It is useful to be able to search for it.
Therefore change occurrences of *' to #' for information and warning messages. `***' is reserved for cases where the build stops.
A corresponding change is being applied to qemu-xen-unstable.
buildconfigs/mk.linux-2.6-common +2 -2
@@ -100,10 +100,10 @@ endif endif $(__NONINT_CONFIG) $(MAKE) -C $(LINUX_SRCDIR) ARCH=$(LINUX_ARCH) oldconfig O=$$(/bin/pwd)/$(LINUX_DIR) @set -e ; if [ ! -f $(LINUX_DIR)/Makefile ] ; then \ - echo "***********************************"; \ + echo "###################################"; \ echo "oldconfig did not create a Makefile"; \ echo "Generating $(LINUX_DIR)/Makefile "; \ - echo "***********************************"; \ + echo "###################################"; \ ( echo "# Automatically generated: don't edit"; \ echo ""; \ echo "VERSION = 2"; \
docs/check_pkgs +6 -6
@@ -2,12 +2,12 @@ silent_which () silent_which () { which $1 1>/dev/null 2>/dev/null || { - echo "*************************************************" - echo "*************************************************" - echo "* WARNING: Package '$1' is required" - echo "* to build Xen documentation" - echo "*************************************************" - echo "*************************************************" + echo "#################################################" + echo "#################################################" + echo "# WARNING: Package '$1' is required" + echo "# to build Xen documentation" + echo "#################################################" + echo "#################################################" } which $1 1>/dev/null 2>/dev/null }
tools/blktap/drivers/Makefile +1 -1
@@ -22,7 +22,7 @@ CRYPT_LIB := -lgcrypt CRYPT_LIB := -lgcrypt else CRYPT_LIB := -lcrypto -$(warning *** libgcrypt not installed: falling back to libcrypto ***) +$(warning ### libgcrypt not installed: falling back to libcrypto ###) endif LDFLAGS_blktapctrl := $(LDFLAGS_libxenctrl) $(LDFLAGS_libxenstore) -L../lib -lblktap
tools/firmware/Makefile +2 -2
@@ -15,10 +15,10 @@ SUBDIRS += hvmloader .PHONY: all all: @set -e; if [ $$((`( bcc -v 2>&1 | grep version || echo 0.0.0 ) | cut -d' ' -f 3 | awk -F. '{ printf "0x%02x%02x%02x", $$1, $$2, $$3}'`)) -lt $$((0x00100e)) ] ; then \ - echo "***********************************************************"; \ + echo "###########################################################"; \ echo "Require dev86 package version >= 0.16.14 to build firmware!"; \ echo "(visit http://www.cix.co.uk/~mayday for more information)"; \ - echo "***********************************************************"; \ + echo "###########################################################"; \ else \ $(MAKE) subdirs-$@; \ fi
tools/vtpm/Makefile +1 -1
@@ -89,6 +89,6 @@ build_sub: $(MAKE) -C $(TPM_EMULATOR_DIR); \ fi \ else \ - echo "*** Unable to build VTPMs. libgmp could not be found."; \ + echo "### Unable to build VTPMs. libgmp could not be found."; \ fi
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 10 lines · I wrote:
This has finally bugged me enough to do something about it:
make prints `***' when it stops due to an error. With make -j, and/or with automated build systems, this error marker can be in the middle of a large logfile. It is useful to be able to search for it.
Therefore change occurrences of
*' to#' for information and warning messages. `***' is reserved for cases where the build stops.A corresponding change is being applied to qemu-xen-unstable.
It turns out that the `make' on our automated testing systems is too old to cope with $(warning ### something ###) even with quotes, so here is a revised patch which uses === instead.
Ian.
buildconfigs/mk.linux-2.6-common +2 -2
@@ -100,10 +100,10 @@ endif endif $(__NONINT_CONFIG) $(MAKE) -C $(LINUX_SRCDIR) ARCH=$(LINUX_ARCH) oldconfig O=$$(/bin/pwd)/$(LINUX_DIR) @set -e ; if [ ! -f $(LINUX_DIR)/Makefile ] ; then \ - echo "***********************************"; \ + echo "==================================="; \ echo "oldconfig did not create a Makefile"; \ echo "Generating $(LINUX_DIR)/Makefile "; \ - echo "***********************************"; \ + echo "==================================="; \ ( echo "# Automatically generated: don't edit"; \ echo ""; \ echo "VERSION = 2"; \
docs/check_pkgs +6 -6
@@ -2,12 +2,12 @@ silent_which () silent_which () { which $1 1>/dev/null 2>/dev/null || { - echo "*************************************************" - echo "*************************************************" - echo "* WARNING: Package '$1' is required" - echo "* to build Xen documentation" - echo "*************************************************" - echo "*************************************************" + echo "=================================================" + echo "=================================================" + echo "= WARNING: Package '$1' is required" + echo "= to build Xen documentation" + echo "=================================================" + echo "=================================================" } which $1 1>/dev/null 2>/dev/null }
tools/blktap/drivers/Makefile +1 -1
@@ -22,7 +22,7 @@ CRYPT_LIB := -lgcrypt CRYPT_LIB := -lgcrypt else CRYPT_LIB := -lcrypto -$(warning *** libgcrypt not installed: falling back to libcrypto ***) +$(warning === libgcrypt not installed: falling back to libcrypto ===) endif LDFLAGS_blktapctrl := $(LDFLAGS_libxenctrl) $(LDFLAGS_libxenstore) -L../lib -lblktap
tools/firmware/Makefile +2 -2
@@ -15,10 +15,10 @@ SUBDIRS += hvmloader .PHONY: all all: @set -e; if [ $$((`( bcc -v 2>&1 | grep version || echo 0.0.0 ) | cut -d' ' -f 3 | awk -F. '{ printf "0x%02x%02x%02x", $$1, $$2, $$3}'`)) -lt $$((0x00100e)) ] ; then \ - echo "***********************************************************"; \ + echo "==========================================================="; \ echo "Require dev86 package version >= 0.16.14 to build firmware!"; \ echo "(visit http://www.cix.co.uk/~mayday for more information)"; \ - echo "***********************************************************"; \ + echo "==========================================================="; \ else \ $(MAKE) subdirs-$@; \ fi
tools/vtpm/Makefile +1 -1
@@ -89,6 +89,6 @@ build_sub: $(MAKE) -C $(TPM_EMULATOR_DIR); \ fi \ else \ - echo "*** Unable to build VTPMs. libgmp could not be found."; \ + echo "=== Unable to build VTPMs. libgmp could not be found."; \ fi
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel