summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2019-05-12 15:47:50 +0100
committerFreeArtMan <dos21h@gmail.com>2019-05-12 15:47:50 +0100
commite02f131fdec629a043471962d7137ed929b2a6a1 (patch)
tree07a8901e11f781d27767c6af43ff9e3979bf7827
parent709c4bd0e02a0dcb609b841053da9624f41440cc (diff)
downloadlibbuf-e02f131fdec629a043471962d7137ed929b2a6a1.tar.gz
libbuf-e02f131fdec629a043471962d7137ed929b2a6a1.zip
Cleanup from debug output
-rw-r--r--buf.c2
-rw-r--r--buf_misc.c3
-rw-r--r--test_line.c1
3 files changed, 3 insertions, 3 deletions
diff --git a/buf.c b/buf.c
index 2a64b1c..d52336b 100644
--- a/buf.c
+++ b/buf.c
@@ -491,7 +491,7 @@ int Buf::shiftleft(int n)
for (i=0;i<mvsz;i++)
{
char c = buf[n+i];
- printf("%c",c);
+ //printf("%c",c);
buf[i] = c;
}
this->cur_size -= n;
diff --git a/buf_misc.c b/buf_misc.c
index b42e2e9..5fbcd63 100644
--- a/buf_misc.c
+++ b/buf_misc.c
@@ -94,8 +94,7 @@ int BufLine::pop_line(char **val, int *size)
int idx;
if (1 == buf->findc('\n',&idx))
{
- printf("")
- buf->popsubstring(4,val,size);
+ buf->popsubstring(idx+1,val,size);
return 0;
}
return -1;
diff --git a/test_line.c b/test_line.c
index c001cc5..497cf47 100644
--- a/test_line.c
+++ b/test_line.c
@@ -71,6 +71,7 @@ int main()
if (0==bline->pop_line(&getline,&sz))
{
printf("[");print_s(getline,sz); printf("]\n");
+ bline->print();
}
printf("End test\n");