[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[win-pv-devel] [PATCH] Inline FunctionName and ReasonName in co-installer



Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx>
---
 src/coinst/coinst.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/coinst/coinst.c b/src/coinst/coinst.c
index 4b3e532..c06bc3f 100644
--- a/src/coinst/coinst.c
+++ b/src/coinst/coinst.c
@@ -145,8 +145,8 @@ GetErrorMessage(
     return Message;
 }
 
-static const CHAR *
-FunctionName(
+static FORCEINLINE const CHAR *
+__FunctionName(
     IN  DI_FUNCTION Function
     )
 {
@@ -2503,10 +2503,10 @@ Entry(
 
     if (!Context->PostProcessing) {
         Log("%s PreProcessing",
-            FunctionName(Function));
+            __FunctionName(Function));
     } else {
         Log("%s PostProcessing (%08x)",
-            FunctionName(Function),
+            __FunctionName(Function),
             Context->InstallResult);
     }
 
@@ -2569,8 +2569,8 @@ Version(
     return NO_ERROR;
 }
 
-static const CHAR *
-ReasonName(
+static FORCEINLINE const CHAR *
+__ReasonName(
     IN  DWORD       Reason
     )
 {
@@ -2605,7 +2605,7 @@ DllMain(
     Log("%s (%s): %s",
         MAJOR_VERSION_STR "." MINOR_VERSION_STR "." MICRO_VERSION_STR "." 
BUILD_NUMBER_STR,
         DAY_STR "/" MONTH_STR "/" YEAR_STR,
-        ReasonName(Reason));
+        __ReasonName(Reason));
 
     return TRUE;
 }
-- 
2.1.1


_______________________________________________
win-pv-devel mailing list
win-pv-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/win-pv-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.