Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC ADC 100M 14b 4cha
Commits
da50d0a1
Commit
da50d0a1
authored
Jul 09, 2021
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:drv: add more information in print error
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
79baf797
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
fa-zio-trg.c
software/kernel/fa-zio-trg.c
+5
-2
No files found.
software/kernel/fa-zio-trg.c
View file @
da50d0a1
...
@@ -383,7 +383,7 @@ static int zfat_arm_trigger(struct zio_ti *ti)
...
@@ -383,7 +383,7 @@ static int zfat_arm_trigger(struct zio_ti *ti)
if
(
size
%
4
)
{
if
(
size
%
4
)
{
/* should never happen: increase the size accordling */
/* should never happen: increase the size accordling */
dev_warn
(
fa
->
msgdev
,
dev_warn
(
fa
->
msgdev
,
"
\n
zio data block size should 32bit word aligned."
"zio data block size should 32bit word aligned."
"original size:%d was increased by %d bytes
\n
"
,
"original size:%d was increased by %d bytes
\n
"
,
size
,
size
%
4
);
size
,
size
%
4
);
size
+=
size
%
4
;
size
+=
size
%
4
;
...
@@ -398,7 +398,10 @@ static int zfat_arm_trigger(struct zio_ti *ti)
...
@@ -398,7 +398,10 @@ static int zfat_arm_trigger(struct zio_ti *ti)
GFP_ATOMIC
);
GFP_ATOMIC
);
if
(
!
block
)
{
if
(
!
block
)
{
dev_err
(
fa
->
msgdev
,
dev_err
(
fa
->
msgdev
,
"
\n
arm trigger fail, cannot allocate block
\n
"
);
"arm trigger fail, cannot allocate block (%d/%d size: %d (%d + %d))
\n
"
,
i
,
fa
->
n_shots
,
size
,
interleave
->
current_ctrl
->
ssize
*
ti
->
nsamples
,
FA_TRIG_TIMETAG_BYTES
);
err
=
-
ENOMEM
;
err
=
-
ENOMEM
;
goto
out_allocate
;
goto
out_allocate
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment