summaryrefslogtreecommitdiff
path: root/utils.mk
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2014-06-09 12:32:33 -0700
committerAaron Plattner <aplattner@nvidia.com>2014-06-09 12:32:33 -0700
commit9f5d554890c871d58bd4f505ee03c3370e1f4e90 (patch)
tree6af03009c7deb33666aefb4f0cc36b8fb9021500 /utils.mk
parent11027cc3b9039a50d529520d93d768887bf440ae (diff)
340.17340.17
Diffstat (limited to 'utils.mk')
-rw-r--r--utils.mk15
1 files changed, 8 insertions, 7 deletions
diff --git a/utils.mk b/utils.mk
index a725f14..cc989d0 100644
--- a/utils.mk
+++ b/utils.mk
@@ -230,7 +230,7 @@ NV_MODULE_LOGGING_NAME ?=
ifeq ($(NV_VERBOSE),0)
quiet_cmd = @$(PRINTF) \
- " $(if $(NV_MODULE_LOGGING_NAME),[ %-17.17s ]) $(quiet_$(1))\n" \
+ " $(if $(NV_MODULE_LOGGING_NAME),[ %-17.17s ],%s) $(quiet_$(1))\n" \
"$(NV_MODULE_LOGGING_NAME)" && $($(1))
else
quiet_cmd = $($(1))
@@ -343,11 +343,12 @@ define DEFINE_STAMP_C_RULE
$$(call BUILD_OBJECT_LIST,$$(STAMP_C)),$(1)) \
$$(VERSION_MK)
@ $$(RM) $$@
- @ $$(PRINTF) "const char NV_ID[] = \"nvidia id: " >> $$@
- @ $$(PRINTF) "$(2): " >> $$@
- @ $$(PRINTF) "version $$(NVIDIA_VERSION) " >> $$@
- @ $$(PRINTF) "($$(shell $$(WHOAMI))@$$(shell $$(HOSTNAME_CMD))) " >> $$@
- @ $$(PRINTF) "$$(shell $(DATE))\";\n" >> $$@
- @ $$(PRINTF) "const char *pNV_ID = NV_ID + 11;\n" >> $$@
+ @ $$(PRINTF) "%s" "const char NV_ID[] = \"nvidia id: " >> $$@
+ @ $$(PRINTF) "%s" "$(2): " >> $$@
+ @ $$(PRINTF) "%s" "version $$(NVIDIA_VERSION) " >> $$@
+ @ $$(PRINTF) "%s" "($$(shell $$(WHOAMI))" >> $$@
+ @ $$(PRINTF) "%s" "@$$(shell $$(HOSTNAME_CMD))) " >> $$@
+ @ $$(PRINTF) "%s\n" "$$(shell $(DATE))\";" >> $$@
+ @ $$(PRINTF) "%s\n" "const char *pNV_ID = NV_ID + 11;" >> $$@
endef