From a57b0a372e2560a1f979c1ec3a3218ca5eb46f49 Mon Sep 17 00:00:00 2001
From: Utz-Uwe Haus <uhaus@cray.com>
Date: Thu, 12 Nov 2020 18:10:40 +0100
Subject: [PATCH] Introduce PRIappid printf specifier for mstro_app_id

---
 include/maestro/core.h | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/include/maestro/core.h b/include/maestro/core.h
index 71e72f5e..c22cad6a 100644
--- a/include/maestro/core.h
+++ b/include/maestro/core.h
@@ -43,7 +43,8 @@ extern "C" {
   #include "maestro/config.h"
   #include "maestro/status.h"
   #include <stdint.h>
-
+  #include <inttypes.h>
+  
   /**@defgroup MSTRO_Core Maestro Core API
    **@{
    ** This is the core API, as developed for D3.2
@@ -96,7 +97,12 @@ extern "C" {
    ** Application-in-workflow identifier type
    **/
   typedef uint64_t mstro_app_id;
-  
+
+  /**
+   ** A printf format specifie suitable to print an @ref mstro_app_id value
+   **/
+  #define PRIappid PRIu64
+
   /**@} (end of group MSTRO_Core) */
   
   /* include the remaining public API */
-- 
GitLab