ustd: add details to debug message in crash recovery
authorPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Sat, 27 Feb 2010 17:32:50 +0000 (12:32 -0500)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Mon, 1 Mar 2010 18:31:00 +0000 (13:31 -0500)
ustd/lowlevel.c

index 47a6f776e6dc5a9f92c90327c7bb88179e5e36f6..4c179c5cbe1317b71b6724f276fcd920cdee4ac8 100644 (file)
@@ -120,6 +120,7 @@ void finish_consuming_dead_subbuffer(struct buffer_info *buf)
                        /* If it was, we only check the data_size. This is the amount of valid data at
                         * the beginning of the subbuffer. */
                        valid_length = header->data_size;
+                       DBG("writing full subbuffer (%d) with valid_length = %ld", i_subbuf, valid_length);
                }
                else {
                        /* If the subbuffer was not fully written, then we don't check data_size because
@@ -128,6 +129,7 @@ void finish_consuming_dead_subbuffer(struct buffer_info *buf)
                         */
 
                        valid_length = commit_seq & (buf->subbuf_size-1);
+                       DBG("writing unfull subbuffer (%d) with valid_length = %ld", i_subbuf, valid_length);
                        header->data_size = valid_length;
                        header->sb_size = PAGE_ALIGN(valid_length);
                        assert(i_subbuf == (last_subbuf % buf->n_subbufs));
This page took 0.026312 seconds and 4 git commands to generate.