simfs: Add some debug statements

This commit is contained in:
Denis Kenzior 2010-10-13 02:37:59 -05:00
parent a6909a227f
commit e755292874
1 changed files with 6 additions and 0 deletions

View File

@ -235,6 +235,9 @@ static void sim_fs_op_read_block_cb(const struct ofono_error *error,
tocopy = len;
}
DBG("bufoff: %d, dataoff: %d, tocopy: %d",
bufoff, dataoff, tocopy);
memcpy(op->buffer + bufoff, data + dataoff, tocopy);
cache_block(fs, op->current, 256, data, len);
@ -295,6 +298,9 @@ static gboolean sim_fs_op_read_block(gpointer user_data)
toread = MIN(256, op->length - op->current * 256);
}
DBG("bufoff: %d, seekoff: %d, toread: %d",
bufoff, seekoff, toread);
if (lseek(fs->fd, seekoff, SEEK_SET) == (off_t) -1)
break;