summaryrefslogtreecommitdiffstats
path: root/minadbd/services.c
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-02-25 18:04:58 +0100
committerAndroid Git Automerger <android-git-automerger@android.com>2015-02-25 18:04:58 +0100
commitd87f96323818368446223d46b83547286362703d (patch)
treec8fecefbb6e166cfd94819b4d1fbacfe75c23fda /minadbd/services.c
parentam 218dab7f: am 6f58e899: am 829d392a: Merge "Delete unused functions from minzip." (diff)
parentam 6deb3d5c: am 35fbf787: Merge "Fix build from implicit declaration." (diff)
downloadandroid_bootable_recovery-d87f96323818368446223d46b83547286362703d.tar
android_bootable_recovery-d87f96323818368446223d46b83547286362703d.tar.gz
android_bootable_recovery-d87f96323818368446223d46b83547286362703d.tar.bz2
android_bootable_recovery-d87f96323818368446223d46b83547286362703d.tar.lz
android_bootable_recovery-d87f96323818368446223d46b83547286362703d.tar.xz
android_bootable_recovery-d87f96323818368446223d46b83547286362703d.tar.zst
android_bootable_recovery-d87f96323818368446223d46b83547286362703d.zip
Diffstat (limited to 'minadbd/services.c')
-rw-r--r--minadbd/services.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/minadbd/services.c b/minadbd/services.c
index 357c222b4..7e419cc85 100644
--- a/minadbd/services.c
+++ b/minadbd/services.c
@@ -14,18 +14,19 @@
* limitations under the License.
*/
-#include <stdlib.h>
+#include <errno.h>
+#include <inttypes.h>
#include <stdio.h>
-#include <unistd.h>
+#include <stdlib.h>
#include <string.h>
-#include <errno.h>
+#include <unistd.h>
#include "sysdeps.h"
-#include "fdevent.h"
-#include "fuse_adb_provider.h"
#define TRACE_TAG TRACE_SERVICES
#include "adb.h"
+#include "fdevent.h"
+#include "fuse_adb_provider.h"
typedef struct stinfo stinfo;
@@ -52,7 +53,8 @@ static void sideload_host_service(int sfd, void* cookie)
s = adb_strtok_r(NULL, ":", &saveptr);
uint32_t block_size = strtoul(s, NULL, 10);
- printf("sideload-host file size %llu block size %lu\n", file_size, block_size);
+ printf("sideload-host file size %llu block size %" PRIu32 "\n", file_size,
+ block_size);
int result = run_adb_fuse(sfd, file_size, block_size);