summaryrefslogtreecommitdiffstats
path: root/src/simfs.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-10-13 02:37:59 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-10-13 05:04:47 -0500
commite755292874995282ffdbcfed600fb3aec1c09425 (patch)
tree919fa1a82b6963b38788269eec9fe4090052688a /src/simfs.c
parenta6909a227fb3792892a4cf8675a19ec4477221b7 (diff)
downloadofono-e755292874995282ffdbcfed600fb3aec1c09425.tar.bz2
simfs: Add some debug statements
Diffstat (limited to 'src/simfs.c')
-rw-r--r--src/simfs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/simfs.c b/src/simfs.c
index da3e345b..fd92e50c 100644
--- a/src/simfs.c
+++ b/src/simfs.c
@@ -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;