- hide temp config file, show config template
[oweals/gnunet.git] / src / mesh / mesh_common.c
index 2d9129ffa03414ee216153d05cdb1d3cf2995852..c986213f107b3215b5556a975b47657756c7d7f6 100644 (file)
@@ -77,6 +77,16 @@ GM_min_pid (uint32_t a, uint32_t b)
 }
 
 
+const struct GNUNET_HashCode *
+GM_h2hc (const struct GNUNET_MeshHash *id)
+{
+  static struct GNUNET_HashCode hc;
+  memcpy (&hc, id, sizeof (*id));
+
+  return &hc;
+}
+
+
 #if !defined(GNUNET_CULL_LOGGING)
 const char *
 GM_m2s (uint16_t m)
@@ -314,7 +324,7 @@ GM_m2s (uint16_t m)
       sprintf(buf, "%u (UNKNOWN TYPE)", m);
       return buf;
   }
-  sprintf(buf, "%31s", t);
+  sprintf(buf, "{%22s}", t);
   return buf;
 }
 #else