diff options
author | Nathan S. Evans <evans@in.tum.de> | 2011-02-02 12:44:35 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2011-02-02 12:44:35 +0000 |
commit | 050742cb65bd6d8c3e89bdf505702fe0fdc7e495 (patch) | |
tree | eecc4a431077b806f3de28402354b12109069e19 /src/testing/testing_group.c | |
parent | 1f0698aaa926cbc9dac9bebd906f88a7062740a9 (diff) | |
download | gnunet-050742cb65bd6d8c3e89bdf505702fe0fdc7e495.tar.gz gnunet-050742cb65bd6d8c3e89bdf505702fe0fdc7e495.zip |
print warning messages about hostkey file
Diffstat (limited to 'src/testing/testing_group.c')
-rw-r--r-- | src/testing/testing_group.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testing/testing_group.c b/src/testing/testing_group.c index 6505ebc4c..9500c6ef4 100644 --- a/src/testing/testing_group.c +++ b/src/testing/testing_group.c | |||
@@ -4925,7 +4925,7 @@ GNUNET_TESTING_daemons_start (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
4925 | if (GNUNET_YES != GNUNET_DISK_file_size (hostkeys_file, &fs, GNUNET_YES)) | 4925 | if (GNUNET_YES != GNUNET_DISK_file_size (hostkeys_file, &fs, GNUNET_YES)) |
4926 | fs = 0; | 4926 | fs = 0; |
4927 | 4927 | ||
4928 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Found file size %llu for hostkeys, expect hostkeys to be size %d\n", fs, HOSTKEYFILESIZE); | 4928 | GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "Found file size %llu for hostkeys, expect hostkeys to be size %d\n", fs, HOSTKEYFILESIZE); |
4929 | 4929 | ||
4930 | if (fs % HOSTKEYFILESIZE != 0) | 4930 | if (fs % HOSTKEYFILESIZE != 0) |
4931 | { | 4931 | { |
@@ -4934,7 +4934,7 @@ GNUNET_TESTING_daemons_start (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
4934 | else | 4934 | else |
4935 | { | 4935 | { |
4936 | total_hostkeys = fs / HOSTKEYFILESIZE; | 4936 | total_hostkeys = fs / HOSTKEYFILESIZE; |
4937 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Will read %llu hostkeys from file\n", total_hostkeys); | 4937 | GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "Will read %llu hostkeys from file\n", total_hostkeys); |
4938 | pg->hostkey_data = GNUNET_malloc_large (fs); | 4938 | pg->hostkey_data = GNUNET_malloc_large (fs); |
4939 | GNUNET_assert (fs == GNUNET_DISK_file_read (fd, pg->hostkey_data, fs)); | 4939 | GNUNET_assert (fs == GNUNET_DISK_file_read (fd, pg->hostkey_data, fs)); |
4940 | GNUNET_assert(GNUNET_OK == GNUNET_DISK_file_close(fd)); | 4940 | GNUNET_assert(GNUNET_OK == GNUNET_DISK_file_close(fd)); |