1.1 --- a/flexpage.cc Mon Feb 15 00:32:23 2021 +0100
1.2 +++ b/flexpage.cc Thu Feb 18 00:53:38 2021 +0100
1.3 @@ -1,5 +1,4 @@
1.4 #include <algorithm>
1.5 -#include <stdio.h>
1.6
1.7 #include "flexpage.h"
1.8
1.9 @@ -132,18 +131,4 @@
1.10 return SendFlexpage(base_addr, page_order(size), _flags);
1.11 }
1.12
1.13 -/* Debugging methods. */
1.14 -
1.15 -void Flexpage::show(std::ostringstream &buffer)
1.16 -{
1.17 - char buf[256];
1.18 -
1.19 - snprintf(buf, 256, "Flexpage(base_offset=0x%lx/%ld, "
1.20 - "base_addr=0x%lx, size=0x%lx/%ld)",
1.21 - base_offset, base_offset, base_addr,
1.22 - size, size);
1.23 -
1.24 - buffer << buf;
1.25 -}
1.26 -
1.27 // vim: tabstop=4 expandtab shiftwidth=4
2.1 --- a/flexpage.h Mon Feb 15 00:32:23 2021 +0100
2.2 +++ b/flexpage.h Thu Feb 18 00:53:38 2021 +0100
2.3 @@ -1,7 +1,5 @@
2.4 #pragma once
2.5
2.6 -#include <sstream>
2.7 -
2.8 #include "memory_utils.h"
2.9 #include "region.h"
2.10 #include "send_flexpage.h"
2.11 @@ -51,10 +49,6 @@
2.12 SendFlexpage to_send(offset_t offset, offset_t hot_spot, offset_t max_offset=0);
2.13
2.14 SendFlexpage to_unmap();
2.15 -
2.16 - /* Debugging methods. */
2.17 -
2.18 - void show(std::ostringstream &buffer);
2.19 };
2.20
2.21 // vim: tabstop=4 expandtab shiftwidth=4
3.1 --- a/region.cc Mon Feb 15 00:32:23 2021 +0100
3.2 +++ b/region.cc Thu Feb 18 00:53:38 2021 +0100
3.3 @@ -1,4 +1,3 @@
3.4 -#include <stdio.h>
3.5 #include <string.h>
3.6 #include <stdlib.h>
3.7
3.8 @@ -19,15 +18,6 @@
3.9 this->filepos = filepos;
3.10 }
3.11
3.12 -void RegionState::show(std::ostringstream &buffer)
3.13 -{
3.14 - char buf[64];
3.15 -
3.16 - snprintf(buf, 64, "{%3ld:%6ld}", fileid, filepos);
3.17 -
3.18 - buffer << buf;
3.19 -}
3.20 -
3.21
3.22
3.23 /* Initialise a region having the given 'start' and 'end' addresses, with the
4.1 --- a/region.h Mon Feb 15 00:32:23 2021 +0100
4.2 +++ b/region.h Thu Feb 18 00:53:38 2021 +0100
4.3 @@ -1,8 +1,5 @@
4.4 #pragma once
4.5
4.6 -#include <stdio.h>
4.7 -#include <sstream>
4.8 -
4.9 #include "types.h"
4.10
4.11
4.12 @@ -20,8 +17,6 @@
4.13
4.14 void fill(fileid_t fileid, offset_t filepos);
4.15
4.16 - void show(std::ostringstream &buffer);
4.17 -
4.18 bool valid() { return size != 0; }
4.19 };
4.20