Changeset 532 for branches/PublicaMundi_David-devel/zoo-project
- Timestamp:
- Nov 6, 2014, 5:27:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PublicaMundi_David-devel/zoo-project/zoo-kernel/zoo_service_loader.c
r531 r532 515 515 #endif 516 516 #endif 517 r_inputs = getMapFromMaps (m, "lenv", "Identifier"); 518 #ifdef DEBUG 519 fprintf (stderr, "Try to load function %s\n", r_inputs->value); 517 #ifdef DEBUG 518 fprintf (stderr, "Try to load function %s\n", s1->name); 520 519 #endif 521 520 typedef int (*execute_t) (maps **, maps **, maps **); 522 521 #ifdef WIN32 523 522 execute_t execute = 524 (execute_t) GetProcAddress (so, r_inputs->value);523 (execute_t) GetProcAddress (so, s1->name); 525 524 #else 526 execute_t execute = (execute_t) dlsym (so, r_inputs->value);525 execute_t execute = (execute_t) dlsym (so, s1->name); 527 526 #endif 528 527 … … 535 534 #endif 536 535 char *tmpMsg = 537 (char *) malloc (2048 + strlen ( r_inputs->value));536 (char *) malloc (2048 + strlen (s1->name)); 538 537 sprintf (tmpMsg, 539 538 _ 540 539 ("Error occured while running the %s function: %s"), 541 r_inputs->value, errstr);540 s1->name, errstr); 542 541 errorException (m, tmpMsg, "InternalError", NULL); 543 542 free (tmpMsg); 544 543 #ifdef DEBUG 545 544 fprintf (stderr, "Function %s error %s\n", 546 r_inputs->value, errstr);545 s1->name, errstr); 547 546 #endif 548 547 *eres = -1;
Note: See TracChangeset
for help on using the changeset viewer.