ndt-dev - [ndt-dev] [ndt] r754 committed - final cleanup - deleted comments, changed check for output buffer
Subject: NDT-DEV email list created
List archive
[ndt-dev] [ndt] r754 committed - final cleanup - deleted comments, changed check for output buffer
Chronological Thread
- From:
- To:
- Subject: [ndt-dev] [ndt] r754 committed - final cleanup - deleted comments, changed check for output buffer
- Date: Tue, 01 Nov 2011 21:31:09 +0000
Revision: 754
Author:
Date: Tue Nov 1 14:30:24 2011
Log: final cleanup - deleted comments, changed check for output buffer
http://code.google.com/p/ndt/source/detail?r=754
Modified:
/branches/kkumar_code_organize/src/logging.c
/branches/kkumar_code_organize/src/logging.h
=======================================
--- /branches/kkumar_code_organize/src/logging.c Tue Nov 1 13:49:11
2011
+++ /branches/kkumar_code_organize/src/logging.c Tue Nov 1 14:30:24
2011
@@ -562,8 +562,9 @@
void printbinary(char *charbinary, int inarray_size, char *binout_arr, int outarr_size) {
int j = 7, i = 0;
- if (inarray_size < 8 || outarr_size < 8 ) {
+ if ( outarr_size < 8 ) {
log_println(8, "Invalid array sizes while formatting protocol binary data. Quitting");
+ return;
}
for (j = 7 ; j >= 0 && i < BITS_8; j--) {
@@ -646,7 +647,7 @@
fp = fopen(get_protologfile(ctlSocket, protologfile), "a");
if (fp == NULL) {
log_println(
- 0,
+ 5,
"Unable to open protocol log file '%s', continuing
on without logging",
protologfile);
} else {
@@ -668,7 +669,6 @@
* @param processid PID of process
* @param ctlSocket socket over which message has been exchanged
* */
-//void protolog_sendprintln (int lvl, const int type, void* msg, const int len, const int processid, const int ctlSocket) {
void protolog_sendprintln(const int type, void* msg, const int len,
const int processid, const int ctlSocket) {
char *currentDir;
@@ -679,7 +679,6 @@
}
currentDir = get_currentdirndesc();
- //printf("--sendprintln=%s;\n", (char *)msg); //to remove
protolog_println(currentDir, type, msg, len, processid, ctlSocket);
}
@@ -871,9 +870,6 @@
if(rc==0) {
timenow = now.tv_sec;
result = gmtime(&now);
- //printf("gettimeofday() successful.\n");
- //printf("time = %u.%06u\n",
- // now.tv_sec, now.tv_usec);
return (fill_ISOtime(result, isoTime, isotimearrsize));
}
return NULL;
=======================================
--- /branches/kkumar_code_organize/src/logging.h Tue Nov 1 13:49:11
2011
+++ /branches/kkumar_code_organize/src/logging.h Tue Nov 1 14:30:24
2011
@@ -80,7 +80,6 @@
void set_protologdir(char* dirname);
void set_protologfile(char* client_ip, char *protologfileparam);
-//char* get_protologfile(int socketnum);
char*
get_protologfile(int socketNum, char *protologfilename) ;
char* get_protologdir();
- [ndt-dev] [ndt] r754 committed - final cleanup - deleted comments, changed check for output buffer, ndt, 11/01/2011
Archive powered by MHonArc 2.6.16.