Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 89705
b: refs/heads/master
c: c15450e
h: refs/heads/master
i:
  89703: 9222f96
v: v3
  • Loading branch information
Martin Peschke authored and James Bottomley committed Apr 7, 2008
1 parent a127944 commit 87ea06d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d5cdc9898b5589acc77db91a1e9c0feb9f32abef
refs/heads/master: c15450e33d198334291d50b5a95337c6b90cdab0
18 changes: 18 additions & 0 deletions trunk/drivers/s390/scsi/zfcp_dbf.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,24 @@ MODULE_PARM_DESC(dbfsize,

#define ZFCP_LOG_AREA ZFCP_LOG_AREA_OTHER

static void zfcp_dbf_hexdump(debug_info_t *dbf, void *to, int to_len,
int level, char *from, int from_len)
{
int offset;
struct zfcp_dbf_dump *dump = to;
int room = to_len - sizeof(*dump);

for (offset = 0; offset < from_len; offset += dump->size) {
memset(to, 0, to_len);
strncpy(dump->tag, "dump", ZFCP_DBF_TAG_SIZE);
dump->total_size = from_len;
dump->offset = offset;
dump->size = min(from_len - offset, room);
memcpy(dump->data, from + offset, dump->size);
debug_event(dbf, level, dump, dump->size);
}
}

static int
zfcp_dbf_stck(char *out_buf, const char *label, unsigned long long stck)
{
Expand Down

0 comments on commit 87ea06d

Please sign in to comment.