Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
tiny improvement of error messages
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 22 Mar 2010 10:09:00 +0000 (10:09 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 22 Mar 2010 10:09:00 +0000 (10:09 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7285 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/simix/smx_host.c

index b1fc9ae..699c67e 100644 (file)
@@ -218,7 +218,7 @@ XBT_INLINE smx_host_t SIMIX_host_get_by_name(const char *name)
  */
 XBT_INLINE xbt_dict_t SIMIX_host_get_properties(smx_host_t host)
 {
  */
 XBT_INLINE xbt_dict_t SIMIX_host_get_properties(smx_host_t host)
 {
-  xbt_assert0((host != NULL), "Invalid parameters");
+  xbt_assert0((host != NULL), "Invalid parameters (simix host is NULL)");
 
   return surf_workstation_model->extension.workstation.get_properties(host->host);
 }
 
   return surf_workstation_model->extension.workstation.get_properties(host->host);
 }
@@ -233,7 +233,7 @@ XBT_INLINE xbt_dict_t SIMIX_host_get_properties(smx_host_t host)
  */
 XBT_INLINE int SIMIX_host_get_state(smx_host_t host)
 {
  */
 XBT_INLINE int SIMIX_host_get_state(smx_host_t host)
 {
-  xbt_assert0((host != NULL), "Invalid parameters");
+  xbt_assert0((host != NULL), "Invalid parameters (simix host is NULL)");
 
   return (surf_workstation_model->extension.workstation.
           get_state(host->host));
 
   return (surf_workstation_model->extension.workstation.
           get_state(host->host));