[LU-11606] use llapi_error() for errors in liblustreapi files Created: 02/Nov/18  Updated: 16/Jan/23  Resolved: 04/Jan/19

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.12.0
Fix Version/s: Lustre 2.13.0

Type: Improvement Priority: Minor
Reporter: Andreas Dilger Assignee: Arshad Hussain
Resolution: Fixed Votes: 0
Labels: easy

Rank (Obsolete): 9223372036854775807

 Description   

Change calls to printf(...) and fprintf(stderr, ...) to use llapi_printf() and llapi_error() so that it is possible to override these calls when liblustreapi is linked into some other application.

The usage of fprintf(fd, ...) in llapi_json_write_list() should not be changed.



 Comments   
Comment by Gerrit Updater [ 15/Dec/18 ]

Arshad Hussain (arshad.super@gmail.com) uploaded a new patch: https://review.whamcloud.com/33877
Subject: LU-11606 utils: Call llapi_error() for errors in liblustreapi files
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 9f59037192d8dcf1e55fd365208ef8f9327710bb

Comment by Gerrit Updater [ 04/Jan/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33877/
Subject: LU-11606 utils: Call llapi_error() for errors in liblustreapi files
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 4983fa82bb2d26fe631bf32815a92733bf910007

Comment by Peter Jones [ 04/Jan/19 ]

Landed for 2.13

Generated at Sat Feb 10 02:45:20 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.