From efb26891d588662cd3d16da9477dd5542f3ce1b2 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Tue, 3 Nov 2020 09:23:27 -0600 Subject: comment out a lot of printf --- P2/lib/utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'P2/lib') diff --git a/P2/lib/utils.c b/P2/lib/utils.c index 92cfbec..88fe5af 100644 --- a/P2/lib/utils.c +++ b/P2/lib/utils.c @@ -30,7 +30,7 @@ char *getChunkData(int mapperID) { } char* value = message.msgText; // printf("%s\n", message.msgText); - printf("%s\n", value); + // printf("%s\n", value); return value; //return &(message.msgText); } @@ -54,7 +54,7 @@ void sendChunkData(char *inputFile, int nMappers) { fseek(file, (i - 1023), SEEK_CUR); message.msgType = (map++ % nMappers) + 1; - printf("%s\n\n",message.msgText); + // printf("%s\n\n",message.msgText); msgsnd(msgid, &message, map, 0); } @@ -84,7 +84,7 @@ int getInterData(char *Qkey, int reducerID) { int id = openQueue("reduce"); msgrcv(id, &message, chunkSize, reducerID, 0); *Qkey = *message.msgText; - // printf("%s\n", Qkey); + printf("%s\n", Qkey); return strncmp("END", message.msgText, 3) == 0; } -- cgit v1.2.3