[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r1988 - GNUnet/src/applications/fs/ecrs
From: |
grothoff |
Subject: |
[GNUnet-SVN] r1988 - GNUnet/src/applications/fs/ecrs |
Date: |
Sun, 28 Aug 2005 00:42:10 -0700 (PDT) |
Author: grothoff
Date: 2005-08-28 00:42:09 -0700 (Sun, 28 Aug 2005)
New Revision: 1988
Modified:
GNUnet/src/applications/fs/ecrs/download.c
GNUnet/src/applications/fs/ecrs/ecrstest.c
Log:
stuff
Modified: GNUnet/src/applications/fs/ecrs/download.c
===================================================================
--- GNUnet/src/applications/fs/ecrs/download.c 2005-08-28 06:56:04 UTC (rev
1987)
+++ GNUnet/src/applications/fs/ecrs/download.c 2005-08-28 07:42:09 UTC (rev
1988)
@@ -31,7 +31,7 @@
#include "ecrs.h"
#include "tree.h"
-#define DEBUG_DOWNLOAD YES
+#define DEBUG_DOWNLOAD NO
/**
* Highest TTL allowed? (equivalent of 25-50 HOPS distance!)
@@ -1194,10 +1194,12 @@
if (OK != createIOContext(&ioc,
ntohll(fid.file_length),
filename)) {
+#if DEBUG_DOWNLOAD
LOG(LOG_DEBUG,
"`%s' aborted for file `%s'\n",
__FUNCTION__,
filename);
+#endif
return SYSERR;
}
rm = createRequestManager();
@@ -1233,11 +1235,13 @@
freeIOC(&ioc, YES);
else
freeIOC(&ioc, NO); /* aborted */
+#if DEBUG_DOWNLOAD
LOG(LOG_DEBUG,
"`%s' terminating for file `%s' with result %s\n",
__FUNCTION__,
filename,
ret == OK ? "SUCCESS" : "INCOMPLETE");
+#endif
return ret;
}
Modified: GNUnet/src/applications/fs/ecrs/ecrstest.c
===================================================================
--- GNUnet/src/applications/fs/ecrs/ecrstest.c 2005-08-28 06:56:04 UTC (rev
1987)
+++ GNUnet/src/applications/fs/ecrs/ecrstest.c 2005-08-28 07:42:09 UTC (rev
1988)
@@ -84,9 +84,9 @@
buf = MALLOC(size);
memset(buf, size + size / 253, size);
for (i=0;i<(int) (size - 42 - sizeof(HashCode512));i+=sizeof(HashCode512))
- hash(&buf[i+sizeof(HashCode512)],
+ hash(&buf[i],
42,
- (HashCode512*) &buf[i]);
+ (HashCode512*) &buf[i+sizeof(HashCode512)]);
WRITE(fd, buf, size);
FREE(buf);
closefile(fd);
@@ -203,9 +203,9 @@
in = MALLOC(size);
memset(buf, size + size / 253, size);
for (i=0;i<(int) (size - 42 - sizeof(HashCode512));i+=sizeof(HashCode512))
- hash(&buf[i+sizeof(HashCode512)],
+ hash(&buf[i],
42,
- (HashCode512*) &buf[i]);
+ (HashCode512*) &buf[i+sizeof(HashCode512)]);
if (size != READ(fd, in, size))
ret = SYSERR;
else if (0 == memcmp(buf,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r1988 - GNUnet/src/applications/fs/ecrs,
grothoff <=