More debug messages in ahalib

This commit is contained in:
Gerard Wagener 2010-10-11 16:42:13 +02:00
parent e5442b7ccb
commit cdb9e2970b
3 changed files with 27 additions and 25 deletions

View file

@ -37,7 +37,8 @@ class AHAActions:
#Can trow IOError #Can trow IOError
def create_message(self,filename,block,exitcode,substitue,insult): def create_message(self,filename,block,exitcode,substitue,insult):
print "CREATE_MESSAGE ",filename,"block=",block print "CREATE_MESSAGE ",filename,"block=",block, "insult=",insult,\
"substitue=",substitue
try: try:
reply = ReplyMessage(block=block,exitcode=exitcode,substitue=substitue, reply = ReplyMessage(block=block,exitcode=exitcode,substitue=substitue,
insult = insult) insult = insult)

View file

@ -7,7 +7,7 @@
#include "os.h" #include "os.h"
#include "linux/delay.h" #include "linux/delay.h"
#include "aha-defs.h" #include "aha-defs.h"
#define MAX_DUMP_BUF 512 #define MAX_DUMP_BUF 1024
struct ReplyMessage{ struct ReplyMessage{
int block; int block;
int exitcode; int exitcode;

View file

@ -32,7 +32,8 @@ inline void __aha_os_write_file_ck(int fd, char* buf, int size, int cnt)
if ((cnt > 0) & (cnt < size)){ if ((cnt > 0) & (cnt < size)){
os_write_file(fd,buf,cnt); os_write_file(fd,buf,cnt);
} else { } else {
AHA_PRINTK("Failed to write information\n"); AHA_PRINTK("Cannot write. buffer is too small size = %d cnt=%d, \
fd=%d\n", size, cnt,fd);
} }
} }