mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
More debug messages in ahalib
This commit is contained in:
parent
e5442b7ccb
commit
cdb9e2970b
3 changed files with 27 additions and 25 deletions
|
@ -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)
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue