Message ID | d260b935-c518-1fdb-c728-84db5a1224a8@redhat.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | xfsprogs: define xfs_stack_trace() for debug builds | expand |
On Wed, Sep 19, 2018 at 03:19:14PM -0500, Eric Sandeen wrote: > Building with -DDEBUG fails due to lack of an xfs_stack_trace def'n. > > Signed-off-by: Eric Sandeen <sandeen@redhat.com> Looks fine. Reviewed-by: Bill O'Donnell <billodo@redhat.com> > --- > > diff --git a/libxfs/libxfs_priv.h b/libxfs/libxfs_priv.h > index 2f2ca06..b6746ca 100644 > --- a/libxfs/libxfs_priv.h > +++ b/libxfs/libxfs_priv.h > @@ -118,6 +118,8 @@ enum ce { CE_DEBUG, CE_CONT, CE_NOTE, CE_WARN, CE_ALERT, CE_PANIC }; > #define xfs_alert_tag(mp,tag,fmt,args...) cmn_err(CE_ALERT,fmt, ## args) > > #define xfs_hex_dump(d,n) ((void) 0) > +#define xfs_stack_trace() ((void) 0) > + > > #define xfs_force_shutdown(d,n) ((void) 0) > >
diff --git a/libxfs/libxfs_priv.h b/libxfs/libxfs_priv.h index 2f2ca06..b6746ca 100644 --- a/libxfs/libxfs_priv.h +++ b/libxfs/libxfs_priv.h @@ -118,6 +118,8 @@ enum ce { CE_DEBUG, CE_CONT, CE_NOTE, CE_WARN, CE_ALERT, CE_PANIC }; #define xfs_alert_tag(mp,tag,fmt,args...) cmn_err(CE_ALERT,fmt, ## args) #define xfs_hex_dump(d,n) ((void) 0) +#define xfs_stack_trace() ((void) 0) + #define xfs_force_shutdown(d,n) ((void) 0)
Building with -DDEBUG fails due to lack of an xfs_stack_trace def'n. Signed-off-by: Eric Sandeen <sandeen@redhat.com> ---