Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfd206b7

Browse files
committed
fix formatting for consistency and readability. convert cr+lf -> lf
1 parentef4284c commitfd206b7

20 files changed

+4680
-5763
lines changed

‎rom/usb/pciusb/buffer.c‎

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,23 @@ APTR usbGetBuffer(APTR data, ULONG len, UWORD dir)
99
{
1010
APTRret=data;
1111

12-
if (len&& (((IPTR)data+len-1) >>32)!=0)
13-
{
14-
ret=AllocVec(len,MEMF_31BIT|MEMF_PUBLIC);
12+
if (len&& (((IPTR)data+len-1) >>32)!=0) {
13+
ret=AllocVec(len,MEMF_31BIT|MEMF_PUBLIC);
1514

16-
if (ret&& (dir==UHDIR_OUT))
17-
CopyMem(data,ret,len);
18-
}
15+
if (ret&& (dir==UHDIR_OUT))
16+
CopyMem(data,ret,len);
17+
}
1918

2019
returnret;
2120
}
2221

2322
voidusbReleaseBuffer(APTRbuffer,APTRdata,ULONGlen,UWORDdir)
2423
{
25-
if (buffer&& (buffer!=data))
26-
{
24+
if (buffer&& (buffer!=data)) {
2725
if (len&& (dir==UHDIR_IN))
2826
CopyMem(buffer,data,len);
2927

30-
FreeVec(buffer);
28+
FreeVec(buffer);
3129
}
3230
}
3331

‎rom/usb/pciusb/debug.c‎

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,36 @@
33
#ifdefDEBUG
44
voiddumpmem_pciusb(void*mem,unsigned longintlen)
55
{
6-
unsignedchar*p;
6+
unsignedchar*p;
77

8-
if (!mem|| !len) {return; }
8+
if (!mem|| !len) {
9+
return;
10+
}
911

10-
p= (unsignedchar*)mem;
12+
p= (unsignedchar*)mem;
1113

1214
#if !defined(AROS_USE_LOGRES)
13-
KPrintF("\n");
14-
15-
do
16-
{
17-
unsignedcharb,c,str[17];
18-
19-
for (b=0;b<16;b++)
20-
{
21-
c=*p++;
22-
str[b]= ((c >=' ')&& (c <='z')) ?c :'.';
23-
str[b+1]=0;
24-
KPrintF("%02lx ",c);
25-
if (--len==0)break;
26-
}
15+
KPrintF("\n");
2716

28-
while (++b<16)
29-
{
30-
KPrintF(" ");
31-
}
17+
do {
18+
unsignedcharb,c,str[17];
19+
20+
for (b=0;b<16;b++) {
21+
c=*p++;
22+
str[b]= ((c >=' ')&& (c <='z')) ?c :'.';
23+
str[b+1]=0;
24+
KPrintF("%02lx ",c);
25+
if (--len==0)break;
26+
}
27+
28+
while (++b<16) {
29+
KPrintF(" ");
30+
}
3231

33-
KPrintF(" %s\n",str);
34-
}while (len);
32+
KPrintF(" %s\n",str);
33+
}while (len);
3534

36-
KPrintF("\n\n");
35+
KPrintF("\n\n");
3736
#else
3837
#endif
3938
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp