summaryrefslogtreecommitdiffstats
path: root/common/state/state.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-03-23 11:41:53 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-03-31 18:43:53 +0200
commita5986ff8177e0f44b7d521a3cd824a8aa328d46f (patch)
treedd6c85dcd41a03d351ab33ea79fd2d746468544d /common/state/state.h
parent5207445cfd1f5fcb592cf4337691ec4b85170c65 (diff)
downloadbarebox-a5986ff8177e0f44b7d521a3cd824a8aa328d46f.tar.gz
barebox-a5986ff8177e0f44b7d521a3cd824a8aa328d46f.tar.xz
state: bucket: Make output more informative
Print offset and number of the bucket along with the bucket specific messages to give a hint which bucket a message is for. Also it's pretty much expected that buckets sometimes have no data or need cleanup, so instead of complaining loudly, only write which bucket is used and which buckets are cleaned up. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/state/state.h')
-rw-r--r--common/state/state.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/state/state.h b/common/state/state.h
index 62544a207c..f6ab2009cc 100644
--- a/common/state/state.h
+++ b/common/state/state.h
@@ -26,6 +26,9 @@ struct state_backend_storage_bucket {
void ** buf, ssize_t * len_hint);
void (*free) (struct state_backend_storage_bucket * bucket);
+ int num;
+ off_t offset;
+
struct list_head bucket_list;
void *buf;