A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add missing calls to XBT_LOG_CONNECT.
[simgrid.git]
/
tools
/
gras
/
stub_generator.c
diff --git
a/tools/gras/stub_generator.c
b/tools/gras/stub_generator.c
index
5de317a
..
e082e15
100644
(file)
--- a/
tools/gras/stub_generator.c
+++ b/
tools/gras/stub_generator.c
@@
-21,6
+21,7
@@
#include "gras_stub_generator.h"
#include <stdarg.h>
#include "gras_stub_generator.h"
#include <stdarg.h>
+extern char *xbt_binary_name;
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(stubgen, gras, "Stub generator");
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(stubgen, gras, "Stub generator");
@@
-56,8
+57,7
@@
static s_process_t process;
static void parse_process_init(void)
{
static void parse_process_init(void)
{
- xbt_dict_set(process_function_set, A_surfxml_process_function, NULL,
- NULL);
+ xbt_dict_set(process_function_set, A_surfxml_process_function, NULL, NULL);
xbt_dict_set(machine_set, A_surfxml_process_host, NULL, NULL);
process.argc = 1;
process.argv = xbt_new(char *, 1);
xbt_dict_set(machine_set, A_surfxml_process_host, NULL, NULL);
process.argc = 1;
process.argv = xbt_new(char *, 1);
@@
-95,10
+95,14
@@
int main(int argc, char *argv[])
char *deployment_file = NULL;
int i;
char *deployment_file = NULL;
int i;
+ XBT_LOG_CONNECT(stubgen, gras);
+
+ xbt_binary_name=xbt_strdup(argv[0]);
+
surf_init(&argc, argv);
surf_init(&argc, argv);
- process_function_set = xbt_dict_new
(
);
+ process_function_set = xbt_dict_new
_homogeneous(NULL
);
process_list = xbt_dynar_new(sizeof(s_process_t), s_process_free);
process_list = xbt_dynar_new(sizeof(s_process_t), s_process_free);
- machine_set = xbt_dict_new
(
);
+ machine_set = xbt_dict_new
_homogeneous(NULL
);
for (i = 1; i < argc; i++) {
int need_removal = 0;
for (i = 1; i < argc; i++) {
int need_removal = 0;